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