接单成功
This commit is contained in:
parent
b59216e941
commit
282758e23a
|
|
@ -51,9 +51,16 @@ class OrderDispatchLog
|
|||
}
|
||||
}
|
||||
|
||||
if($dispatch->status == OrderDispatch::STATUS_GOTIT){
|
||||
$Order = Order::get($dispatch->order_id);
|
||||
SendMailLogic::sendToCustomStart($Order->tel,$dispatch->worker_name,$dispatch->worker_tel);
|
||||
if($dispatch->type == 2){
|
||||
if($dispatch->status == OrderDispatch::STATUS_GOTIT){
|
||||
$Order = Order::get($dispatch->order_id);
|
||||
SendMailLogic::sendToCustomStart($Order->tel,$dispatch->worker_name,$dispatch->worker_tel);
|
||||
}
|
||||
}elseif($dispatch->type == 1){
|
||||
if($dispatch->status == OrderDispatch::STATUS_TOGET){
|
||||
$Order = Order::get($dispatch->order_id);
|
||||
SendMailLogic::sendToCustomStart($Order->tel,$dispatch->worker_name,$dispatch->worker_tel);
|
||||
}
|
||||
}
|
||||
}catch (Exception $exception){
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user