增加get_ip_local处理无结果时的返回
This commit is contained in:
parent
28b6d92124
commit
d6385876fc
@ -53,6 +53,8 @@
|
|||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true) ; // 获取数据返回
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true) ; // 获取数据返回
|
||||||
$result=json_decode(curl_exec($ch));
|
$result=json_decode(curl_exec($ch));
|
||||||
|
|
||||||
|
if(!$result)return null;
|
||||||
|
|
||||||
if((string)$result->code=='1')
|
if((string)$result->code=='1')
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user