【程序目录】更新腾讯云端错报错信息

This commit is contained in:
吴昊天 2022-09-15 11:11:36 +08:00
parent 13adf9a931
commit c0db77a7c3

View File

@ -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;
}