shenshihai 2 年之前
父節點
當前提交
1f8237e748
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Utility.php

+ 1 - 1
src/Utility.php

@@ -42,7 +42,7 @@ function getClientIp(){
 		logError('failed to get client ip',$url);
 		return false;
 	}
-	$json = json_decode($data);
+	$json = json_decode($data,true);
 	if(!$json){
 		logError('failed to parse client ip data',$data);
 		return false;