优化获取平安订单id
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user