From ed1e344f9c8cefcb5a5d6c753be561ea99ad0e0f Mon Sep 17 00:00:00 2001 From: liuyuhang Date: Sun, 21 Jul 2024 22:20:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=A2=E5=8D=95=E7=88=AC?= =?UTF-8?q?=E8=99=AB=E4=B8=8D=E5=8F=91=E9=80=81=E7=9F=AD=E4=BF=A1=E7=9A=84?= =?UTF-8?q?=20bug=EF=BC=8C=E5=8E=9F=E5=9B=A0=EF=BC=9Aconfig(app.debug)=20?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=AD=97=E7=AC=A6=E4=B8=B2=20false?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/app/command/SpiderDy.php | 2 +- service/app/command/SpiderMt.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();