接单成功

This commit is contained in:
xman 2025-06-02 18:53:03 +08:00
parent b59216e941
commit 282758e23a

View File

@ -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){