sth
This commit is contained in:
parent
81a499ebfe
commit
91f3266094
|
|
@ -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('语音通知服务未开启');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user