发送任务修正

This commit is contained in:
2026-01-12 10:07:13 +08:00
parent 8c1678eb0a
commit a7874901d8
4 changed files with 6 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ class SendMarkSms implements Consumer
if($record['send_type'] == 2 && $record['send_time'] > date('Y-m-d H:i:s') && $record['send_time'] <= date('Y-m-d 23:59:59')) {
// 推给redis
$stortime = strtotime($record['send_time']);
$a = Redis::setEx('expired:sms:'.$record['id'], $stortime - time(), 1);
$a = Redis::setEx('expired:sms:'.$data, $stortime - time(), 1);
Log::info(' 定时发送已存入redis, 过期时间->>>' .$record['send_time'] . '/' . $stortime - time() . '保存结果' . $a);
}else {
// 待发送