下次发送短信提醒-开始发送短信

This commit is contained in:
karl 2024-08-02 10:22:50 +08:00
parent 4de6ed33f5
commit 1172cac95c
1 changed files with 6 additions and 6 deletions

View File

@ -63,17 +63,17 @@ class NotUsedOrderSms extends Command
continue; continue;
} }
// $result = Orders::reminderOrders($order); $result = Orders::reminderOrders($order);
$text = '已发送提醒。'; $text = '已发送提醒。';
// if (Error::is($result)) { if (Error::is($result)) {
// $text = '发送短信失败,' . $result['message'] ?? ''; $text = '发送短信失败,' . $result['message'] ?? '';
// } }
$this->output($output, "单号 {$order->sn} {$text}"); $this->output($output, "单号 {$order->sn} {$text}");
// $order->next_remind_time = $order->next_remind_time + 10 * 24 * 60 * 60; $order->next_remind_time = $order->next_remind_time + 10 * 24 * 60 * 60;
// $order->save(); $order->save();
} }
return self::SUCCESS; return self::SUCCESS;