console
parent
f14228509a
commit
c65385a21c
|
|
@ -41,6 +41,7 @@ class OrderDistribute extends Command
|
|||
public function handle()
|
||||
{
|
||||
$service = new \App\Services\DistributeService();
|
||||
while (true) {
|
||||
try {
|
||||
DB::beginTransaction();
|
||||
$query = Order::completable();
|
||||
|
|
@ -60,6 +61,7 @@ class OrderDistribute extends Command
|
|||
DB::rollBack();
|
||||
$this->line($th);
|
||||
}
|
||||
return 0;
|
||||
sleep(60);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue