增加get_ip_local处理无结果时的返回

This commit is contained in:
hyzboy 2017-02-23 19:38:43 +08:00
parent 28b6d92124
commit d6385876fc

View File

@ -53,6 +53,8 @@
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true) ; // 获取数据返回
$result=json_decode(curl_exec($ch));
if(!$result)return null;
if((string)$result->code=='1')
return false;