From d6f94477a0e9f2fb1b2eb79143c4e30c6009bb29 Mon Sep 17 00:00:00 2001 From: IoTcat Date: Sat, 23 Mar 2019 13:14:48 +0800 Subject: [PATCH] fix gugu bug --- server/cn/home/www/api/www-api/gugu/index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/cn/home/www/api/www-api/gugu/index.php b/server/cn/home/www/api/www-api/gugu/index.php index 9a5fe67..08c6afb 100644 --- a/server/cn/home/www/api/www-api/gugu/index.php +++ b/server/cn/home/www/api/www-api/gugu/index.php @@ -9,8 +9,7 @@ $memobirdID = $_REQUEST['memobirdID']; $res = gugu__send($ak, $userID, $memobirdID, $body); -$data = json_decode($res); -if(!isset($data['showapi_res_code'])){ +if(strpos($res,'showapi_res_code') === false){ echo json_encode(array("showapi_res_code" => 0, "showapi_res_error" => "ak, 咕咕号或咕咕机编号错误!")); }else{