feat: #10000 日志查询修改

This commit is contained in:
赵世界 2022-08-11 18:09:15 +08:00
parent ee6e1fa09f
commit 360cf5cf17
2 changed files with 3 additions and 2 deletions

View File

@ -46,7 +46,7 @@ class Swoole extends Command
Timer::tick(1000, function () {
$shops = Shop::query()->where('plat_id', 1)->where('status', 1)->get();
$endTime = DateTimeUtils::getMicroTime();
$beginTime = $endTime - 1000;
$beginTime = $endTime - 10000;
foreach ($shops as $shop) {
BusinessFactory::init()->make($shop->plat_id)->setShop($shop)->downloadOrdersAndSave($beginTime, $endTime, 'increment', 1);
}

View File

@ -17,7 +17,8 @@ class Log extends Model
'target_id',
'target_field',
'user_id',
'created_at',
'start_time',
'end_time',
];
public $fillable = [