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;