$push_status == 2

This commit is contained in:
ASUS 2025-11-10 15:48:42 +08:00
parent df12c493c6
commit 29475b7da4
1 changed files with 3 additions and 1 deletions

View File

@ -123,7 +123,9 @@ class QuerySmsStatus extends Command
];
$update_status = Db::table('sms_push_event_record')->where(['id' => $value['id']])->update($update_data);
// 只要有一个发送成功的就更改状态发送成功
Db::table('sms_push_event')->where(['id' => $value['event_id']])->update(['status' => 2]);
if($push_status == 2) {
Db::table('sms_push_event')->where(['id' => $value['event_id']])->update(['status' => 2]);
}
Log::info('营销短信查询完毕数据库更新结果---》[ID]' . $value['id'] . '更新结果-->' . $update_status . '-->更新数据 . ' . json_encode($update_data));
}
Db::commit();