这三个函数每个函数每运行一次,就会在平台后台扣一次量,所以不能同时执行。
现在我有点迷糊,在 if elseif else的时候不能谁确的判断这些逻辑,请教各位大佬指点,谢谢了。
function get_ip_address($ip = "")
{
if ( $ip == "" ){
$ip = get_ip(); /* 获取当前浏览用户地址,显示的是纯ip地址格式 */
}
$ic = curl_ip_aliyun();
if (stripos($ic,$ip,0) !== false) {
$i = $ic;
} elseif ($ic == "") {
$ic = curl_ip_ip138();
}else{
$ic = curl_ip_juhe();
}
}
![](https://img2.imgtp.com/2024/04/14/ZdfpjcZz.png)