This commit is contained in:
ASUS 2025-10-17 16:28:52 +08:00
parent f0da923fd8
commit 4aaaa4a3ba
1 changed files with 1 additions and 3 deletions

View File

@ -41,7 +41,7 @@ class SendMarkSms implements Consumer
if($data) { if($data) {
// 发送任务 // 发送任务
// $record = Db::table('sms_push_event')->where(['id' => $sms_push_event_id, 'push_type' => 2])->find(); // $record = Db::table('sms_push_event')->where(['id' => $sms_push_event_id, 'push_type' => 2])->find();
$record = Db::table('sms_push_event')->where(['id' => $sms_push_event_id])->find(); $record = Db::table('sms_push_event')->where(['id' => $sms_push_event_id, 'status' => 0])->find();
if($record) { if($record) {
// 查询是否是定时发送 // 查询是否是定时发送
if($record['send_type'] == 2 && $record['send_time'] > date('Y-m-d H:i:s')) { if($record['send_type'] == 2 && $record['send_time'] > date('Y-m-d H:i:s')) {
@ -109,11 +109,9 @@ class SendMarkSms implements Consumer
} }
}else { }else {
Log::info('商户【' . $record['shop_id'] . '】余额不足'); Log::info('商户【' . $record['shop_id'] . '】余额不足');
return false;
} }
}else { }else {
Log::info('商户【' . $record['shop_id'] . '】余额为空'); Log::info('商户【' . $record['shop_id'] . '】余额为空');
return false;
} }
sleep(1); sleep(1);
} }