diff --git a/application/common/Logic/NoticeLogic.php b/application/common/Logic/NoticeLogic.php index d56aaf8..627d8c8 100644 --- a/application/common/Logic/NoticeLogic.php +++ b/application/common/Logic/NoticeLogic.php @@ -50,6 +50,7 @@ class NoticeLogic if(empty($ttsCode)){ $log->status = -1; $log->content = 'TTSID为空'; + $log->mobile = $dispatch->worker_tel; $log->save(); return; } @@ -62,15 +63,18 @@ class NoticeLogic if($reponse->statusCode == 200 && $reponse->body->code == 'OK'){ $log->status = 1; $log->callId = $reponse->body->callId; + $log->mobile = $dispatch->worker_tel; $log->save(); }else{ $log->status = -1; + $log->mobile = $dispatch->worker_tel; $log->content = $reponse->body->message; $log->save(); } }else{ $log->status = -1; $log->content = 'TTSID为空'; + $log->mobile = $dispatch->worker_tel; $log->save(); //throw new Exception('语音通知服务未开启'); } diff --git a/application/common/command/CheckTTSOverTimeCommand.php b/application/common/command/CheckTTSOverTimeCommand.php index 9928c09..6e1d9d7 100644 --- a/application/common/command/CheckTTSOverTimeCommand.php +++ b/application/common/command/CheckTTSOverTimeCommand.php @@ -43,6 +43,7 @@ class CheckTTSOverTimeCommand extends Command $logs[] = [ 'dispatch_id' => $item->id, 'order_id'=>$item->order_id, + 'mobile' => $item->worker_tel, 'type' => 3, 'outid' => md5(time().rand(1000,9999).rand(1000,9999)), 'create_time' => date('Y-m-d H:i:s'), diff --git a/application/common/command/CheckTTSPlantCommand.php b/application/common/command/CheckTTSPlantCommand.php index 17382af..ca56bdf 100644 --- a/application/common/command/CheckTTSPlantCommand.php +++ b/application/common/command/CheckTTSPlantCommand.php @@ -44,6 +44,7 @@ class CheckTTSPlantCommand extends Command $logs[] = [ 'dispatch_id' => $item->id, 'order_id'=>$item->order_id, + 'mobile' => $item->worker_tel, 'type' => 2, 'outid' => md5(time().rand(1000,9999).rand(1000,9999)), 'create_time' => date('Y-m-d H:i:s'),