优化获取平安订单id

This commit is contained in:
2022-02-07 15:45:48 +08:00
parent af91fa18ab
commit 0e1ea67c0e
2 changed files with 3 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ class RefreshPAOrder extends Action
$table = 'api_log_'.$month; $table = 'api_log_'.$month;
CheckCouponLog::dispatch($table); CheckCouponLog::dispatch($table);
CheckCouponByLog::dispatch($table)->delay(now()->addMinutes(10));; CheckCouponByLog::dispatch($table, 10);
return $this->response()->success('正在获取数据,请等待片刻后刷新页面查看!')->refresh(); return $this->response()->success('正在获取数据,请等待片刻后刷新页面查看!')->refresh();
} }

View File

@@ -23,9 +23,10 @@ class CheckCouponByLog implements ShouldQueue
protected $table; protected $table;
public function __construct(string $table) public function __construct(string $table, int $delay = 0)
{ {
$this->table = $table; $this->table = $table;
$this->delay = $delay;
} }
public function handle() public function handle()