diff --git a/service/app/command/SpiderDy.php b/service/app/command/SpiderDy.php index 396b55f3..5c2d2e23 100644 --- a/service/app/command/SpiderDy.php +++ b/service/app/command/SpiderDy.php @@ -453,7 +453,7 @@ class SpiderDy extends Command private function sms($admin_id, $order) { $user = Admins::cache(true)->where('id', $admin_id)->find(); - if (!config('app.debug', true) && (time() * 1000 - $order->create_at) / 1000 < 2 * 24 * 3600) { + if ((!config('app.debug', true) || config('app.debug', true) === 'false') && (time() * 1000 - $order->create_at) / 1000 < 2 * 24 * 3600) { echo "发送短信\n"; print_r([$order->mobile, 261607, ['title' => $order->product_name, 'mobile' => $user->mobile]]); $has = Blacks::where('mobile', $order->mobile)->find(); diff --git a/service/app/command/SpiderMt.php b/service/app/command/SpiderMt.php index 3921687e..0769e595 100644 --- a/service/app/command/SpiderMt.php +++ b/service/app/command/SpiderMt.php @@ -487,7 +487,7 @@ class SpiderMt extends Command private function sms($admin_id, $order) { $user = Admins::cache(true)->where('id', $admin_id)->find(); - if (!config('app.debug', true) && (time() * 1000 - $order->create_at) / 1000 < 2 * 24 * 3600) { + if ((!config('app.debug', true) || config('app.debug', true) === 'false') && (time() * 1000 - $order->create_at) / 1000 < 2 * 24 * 3600) { echo "发送短信\n"; print_r([$order->mobile, 261607, ['title' => $order->product_name, 'mobile' => $user->mobile]]); $has = Blacks::where('mobile', $order->mobile)->find();