1
This commit is contained in:
@@ -3,7 +3,7 @@ namespace Extend\Alibaba;
|
||||
|
||||
use App\Constants\HttpEnumCode;
|
||||
use App\Exception\BusinessException;
|
||||
use App\Model\CodeLog;
|
||||
use App\Model\LogCode;
|
||||
use Darabonba\OpenApi\OpenApiClient;
|
||||
use AlibabaCloud\OpenApiUtil\OpenApiUtilClient;
|
||||
|
||||
@@ -118,7 +118,7 @@ class Dysms
|
||||
$data['code'] = $template_code;
|
||||
$data['third_code'] = $result['body']['RequestId'];
|
||||
$data['remarks'] = json_encode($template_param,JSON_UNESCAPED_UNICODE);
|
||||
$res = CodeLog::addCodeLog($data);
|
||||
$res = LogCode::addCodeLog($data);
|
||||
if (empty($res)){
|
||||
// 发送成功,记录失败
|
||||
throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::CODE_FAIL));
|
||||
|
||||
Reference in New Issue
Block a user