From 48e83b32f3b3b013a0f1c115a530b8d8794cf1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B8=96=E7=95=8C?= <642747453@qq.com> Date: Tue, 30 Aug 2022 23:46:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20#10000=20=E5=A2=9E=E5=8A=A0=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=97=A5=E5=BF=97=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/DeleteKttQuery.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Console/Commands/DeleteKttQuery.php b/app/Console/Commands/DeleteKttQuery.php index 77bb2e0..9353336 100644 --- a/app/Console/Commands/DeleteKttQuery.php +++ b/app/Console/Commands/DeleteKttQuery.php @@ -53,6 +53,11 @@ class DeleteKttQuery extends Command ->delete(); $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', '更新库存') ->where('created_at', '<', date('Y-m-d H:i:s', strtotime('-2 day'))) ->delete();