sth
This commit is contained in:
parent
0755a54695
commit
2f29860c56
|
|
@ -144,9 +144,9 @@ class Dispatch extends Backend
|
|||
}
|
||||
|
||||
//判断 是否存在有效派单任务
|
||||
$existDispatch = OrderDispatch::where('order_id', $params['order_id'])->where('status', '>=',0)->find();
|
||||
$existDispatch = OrderDispatch::where('order_id', $params['order_id'])->where('status', '>=',0)->count();
|
||||
|
||||
if(!empty($existDispatch)){
|
||||
if($existDispatch > 0){
|
||||
$this->error('该订单已经派单,不可重复操作');
|
||||
}
|
||||
sleep(2);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user