|
|
@@ -53,6 +53,7 @@ class AutomaticDispatch extends Command
|
|
|
$fiveMinutesAgo = time() - 120; // 300 秒 = 2 分钟
|
|
|
$list = ServiceWork::where('work_status',0)
|
|
|
->where('service_status',0)
|
|
|
+ ->where('refund_approval',0)
|
|
|
->where('work_pay_status',1)
|
|
|
->where(function ($query) use ($fiveMinutesAgo) {
|
|
|
$query->where('exec_time', 0)->whereOr('exec_time', '<', $fiveMinutesAgo);
|