店铺软删
This commit is contained in:
parent
a4cac13c41
commit
4b95b67e54
@ -15,7 +15,7 @@ class KttOrderQuery extends Command
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'ktt:order_query';
|
||||
protected $signature = 'ktt:order_query {start?}';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
@ -44,9 +44,10 @@ class KttOrderQuery extends Command
|
||||
{
|
||||
$shops = Shop::query()->where('plat_id', Shop::$PLAT_KTT)->where('status', Shop::$STATUS_AUTHORIZED)->get();
|
||||
$endTime = DateTimeUtils::getMicroTime();
|
||||
$beginTime = $endTime - 63000;
|
||||
$start = $this->argument('start');
|
||||
$beginTime = $start??($endTime - 69000);
|
||||
foreach ($shops as $shop) {
|
||||
BusinessFactory::init()->make($shop->plat_id)->setShop($shop)->downloadOrdersAndSave($beginTime, $endTime + 3000);
|
||||
BusinessFactory::init()->make($shop->plat_id)->setShop($shop)->downloadOrdersAndSave($beginTime, $endTime - 6000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -116,6 +116,7 @@ class KuaiTuanTuan extends BusinessClient
|
||||
[$type, $appendParams] = Order::downloadOrders($beginTime, $endTime, $page);
|
||||
$responseName = 'ktt_order_list_response';
|
||||
}
|
||||
|
||||
$res = $this->doRequest($type, $appendParams);
|
||||
if (!isset($res[$responseName])) {
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user