mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 14:40:44 +00:00
feat: #10000 日志查询修改
This commit is contained in:
parent
ee6e1fa09f
commit
360cf5cf17
@ -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);
|
||||
}
|
||||
|
||||
@ -17,7 +17,8 @@ class Log extends Model
|
||||
'target_id',
|
||||
'target_field',
|
||||
'user_id',
|
||||
'created_at',
|
||||
'start_time',
|
||||
'end_time',
|
||||
];
|
||||
|
||||
public $fillable = [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user