6
0
Fork 0
release
panliang 2022-05-23 11:27:38 +08:00
parent f14228509a
commit c65385a21c
1 changed files with 20 additions and 18 deletions

View File

@ -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);
}
}
}