From 46e54bb429b250438072f584183a743d22d1691f Mon Sep 17 00:00:00 2001 From: jianghanbo Date: Tue, 17 Dec 2024 19:17:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/app/command/SpiderDy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/app/command/SpiderDy.php b/service/app/command/SpiderDy.php index 8af88f80..b4f32909 100644 --- a/service/app/command/SpiderDy.php +++ b/service/app/command/SpiderDy.php @@ -379,14 +379,14 @@ class SpiderDy extends Command continue; } } - Log::info(sprintf('dy create order:%s, admin_id:%s', $order->sn, $admin_id)); + if (empty($admin_id)) return null; } $order->admin_id = $admin_id; $order->give_time = time(); //判断是否需要发短信 - if ($order->order_status == 1) { + if ($order->order_status == 1 && $admin_id) { $this->sms($admin_id, $order); }