From d6385876fc67e6cb16262385d446a212306e009d Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 23 Feb 2017 19:38:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0get=5Fip=5Flocal=E5=A4=84?= =?UTF-8?q?=E7=90=86=E6=97=A0=E7=BB=93=E6=9E=9C=E6=97=B6=E7=9A=84=E8=BF=94?= =?UTF-8?q?=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools_ip.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools_ip.php b/tools_ip.php index 2ad3994..38577aa 100644 --- a/tools_ip.php +++ b/tools_ip.php @@ -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;