This commit is contained in:
xman 2025-06-03 17:00:32 +08:00
parent f29e01483e
commit 47adcda018

View File

@ -51,8 +51,12 @@ class NoticeLogic
$log->status = -1;
$log->content = 'TTSID为空';
$log->save();
return;
}
$status = config('alibaba_dyvms.status');
if($status){
$reponse = DyvmsService::getInstance()->call($dispatch->worker_tel, $ttsCode, md5(time()));
if($reponse->statusCode == 200 && $reponse->body->code == 'OK'){
@ -64,6 +68,9 @@ class NoticeLogic
$log->content = $reponse->body->message;
$log->save();
}
}else{
throw new Exception('语音通知服务未开启');
}
}catch (Exception $exception){
$log->status = -1;
$log->content = $exception->getMessage();