This commit is contained in:
xman 2025-06-19 16:23:39 +08:00
parent 81a499ebfe
commit 91f3266094
3 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,7 @@ class NoticeLogic
if(empty($ttsCode)){ if(empty($ttsCode)){
$log->status = -1; $log->status = -1;
$log->content = 'TTSID为空'; $log->content = 'TTSID为空';
$log->mobile = $dispatch->worker_tel;
$log->save(); $log->save();
return; return;
} }
@ -62,15 +63,18 @@ class NoticeLogic
if($reponse->statusCode == 200 && $reponse->body->code == 'OK'){ if($reponse->statusCode == 200 && $reponse->body->code == 'OK'){
$log->status = 1; $log->status = 1;
$log->callId = $reponse->body->callId; $log->callId = $reponse->body->callId;
$log->mobile = $dispatch->worker_tel;
$log->save(); $log->save();
}else{ }else{
$log->status = -1; $log->status = -1;
$log->mobile = $dispatch->worker_tel;
$log->content = $reponse->body->message; $log->content = $reponse->body->message;
$log->save(); $log->save();
} }
}else{ }else{
$log->status = -1; $log->status = -1;
$log->content = 'TTSID为空'; $log->content = 'TTSID为空';
$log->mobile = $dispatch->worker_tel;
$log->save(); $log->save();
//throw new Exception('语音通知服务未开启'); //throw new Exception('语音通知服务未开启');
} }

View File

@ -43,6 +43,7 @@ class CheckTTSOverTimeCommand extends Command
$logs[] = [ $logs[] = [
'dispatch_id' => $item->id, 'dispatch_id' => $item->id,
'order_id'=>$item->order_id, 'order_id'=>$item->order_id,
'mobile' => $item->worker_tel,
'type' => 3, 'type' => 3,
'outid' => md5(time().rand(1000,9999).rand(1000,9999)), 'outid' => md5(time().rand(1000,9999).rand(1000,9999)),
'create_time' => date('Y-m-d H:i:s'), 'create_time' => date('Y-m-d H:i:s'),

View File

@ -44,6 +44,7 @@ class CheckTTSPlantCommand extends Command
$logs[] = [ $logs[] = [
'dispatch_id' => $item->id, 'dispatch_id' => $item->id,
'order_id'=>$item->order_id, 'order_id'=>$item->order_id,
'mobile' => $item->worker_tel,
'type' => 2, 'type' => 2,
'outid' => md5(time().rand(1000,9999).rand(1000,9999)), 'outid' => md5(time().rand(1000,9999).rand(1000,9999)),
'create_time' => date('Y-m-d H:i:s'), 'create_time' => date('Y-m-d H:i:s'),