From 933e90bfc268467d76ee267bb54d5b925fd65cea Mon Sep 17 00:00:00 2001 From: hitsword Date: Mon, 20 May 2019 16:37:18 +0800 Subject: [PATCH] debug Signed-off-by: hitsword --- includes/huayi-score-sdk.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/huayi-score-sdk.php b/includes/huayi-score-sdk.php index c908886..7de3c54 100644 --- a/includes/huayi-score-sdk.php +++ b/includes/huayi-score-sdk.php @@ -37,6 +37,7 @@ class HuayiScoreSdk ]; $response = $this->postRequest($url, $data); if (!$response) {//请求失败 + $this->error = '接口请求失败'; return false; } elseif ($response['code'] == 1) {//请求成功 return $response;