From 1172cac95cf656b015728cdaf2a858db8ecbfab5 Mon Sep 17 00:00:00 2001 From: karl Date: Fri, 2 Aug 2024 10:22:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E6=AC=A1=E5=8F=91=E9=80=81=E7=9F=AD?= =?UTF-8?q?=E4=BF=A1=E6=8F=90=E9=86=92-=E5=BC=80=E5=A7=8B=E5=8F=91?= =?UTF-8?q?=E9=80=81=E7=9F=AD=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/app/command/NotUsedOrderSms.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/service/app/command/NotUsedOrderSms.php b/service/app/command/NotUsedOrderSms.php index 179ee365..cd530959 100644 --- a/service/app/command/NotUsedOrderSms.php +++ b/service/app/command/NotUsedOrderSms.php @@ -63,17 +63,17 @@ class NotUsedOrderSms extends Command continue; } -// $result = Orders::reminderOrders($order); + $result = Orders::reminderOrders($order); $text = '已发送提醒。'; -// if (Error::is($result)) { -// $text = '发送短信失败,' . $result['message'] ?? ''; -// } + if (Error::is($result)) { + $text = '发送短信失败,' . $result['message'] ?? ''; + } $this->output($output, "单号 {$order->sn} : {$text}"); -// $order->next_remind_time = $order->next_remind_time + 10 * 24 * 60 * 60; -// $order->save(); + $order->next_remind_time = $order->next_remind_time + 10 * 24 * 60 * 60; + $order->save(); } return self::SUCCESS;