接单成功
This commit is contained in:
parent
2d866e0aac
commit
b59216e941
|
|
@ -2,8 +2,10 @@
|
|||
|
||||
namespace app\admin\behavior;
|
||||
|
||||
use app\admin\controller\SendMailLogic;
|
||||
use app\admin\model\OrderDispatch;
|
||||
use app\common\Logic\NoticeLogic;
|
||||
use app\common\model\Order;
|
||||
use think\Exception;
|
||||
use think\Lang;
|
||||
|
||||
|
|
@ -48,6 +50,11 @@ class OrderDispatchLog
|
|||
$service->dispatchNotice($dispatch,$data);
|
||||
}
|
||||
}
|
||||
|
||||
if($dispatch->status == OrderDispatch::STATUS_GOTIT){
|
||||
$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