!80 增加删除日志命令

Merge pull request !80 from 赵世界/develop
This commit is contained in:
赵世界 2022-08-30 15:47:49 +00:00 committed by Gitee
commit 8e6a692f31
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -53,6 +53,11 @@ class DeleteKttQuery extends Command
->delete(); ->delete();
$this->info('删除增量查订单: ' . $count); $this->info('删除增量查订单: ' . $count);
$count = Log::where('target_field', 'pdd.ktt.goods.incr.quantity')
->where('created_at', '<', date('Y-m-d H:i:s', strtotime('-2 day')))
->delete();
$this->info('删除快团团更新库存: ' . $count);
$count = Log::where('target_field', '更新库存') $count = Log::where('target_field', '更新库存')
->where('created_at', '<', date('Y-m-d H:i:s', strtotime('-2 day'))) ->where('created_at', '<', date('Y-m-d H:i:s', strtotime('-2 day')))
->delete(); ->delete();