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;