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); }