From c0db77a7c378da44e045ec2ae87c6f1fb350fb3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Thu, 15 Sep 2022 11:11:36 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E3=80=91=E6=9B=B4=E6=96=B0=E8=85=BE=E8=AE=AF=E4=BA=91=E7=AB=AF?= =?UTF-8?q?=E9=94=99=E6=8A=A5=E9=94=99=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/crmeb/services/sms/storage/Tencent.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crmeb/crmeb/services/sms/storage/Tencent.php b/crmeb/crmeb/services/sms/storage/Tencent.php index 5d795084d..b90663420 100644 --- a/crmeb/crmeb/services/sms/storage/Tencent.php +++ b/crmeb/crmeb/services/sms/storage/Tencent.php @@ -113,10 +113,12 @@ class Tencent extends BaseSms ]); $res = HttpService::request(self::API_URL, 'post', $body, $this->getHeader($body)); $res = json_decode($res, true); - if (!empty($res['Response']['Error'])) { return $this->setError($res['Response']['Message']); } + if ($res['Response']['SendStatusSet'][0]['Code'] != 'Ok') { + return $this->setError($res['Response']['SendStatusSet'][0]['Message']); + } return $res; }