shop_id
This commit is contained in:
parent
f0da923fd8
commit
4aaaa4a3ba
|
|
@ -41,7 +41,7 @@ class SendMarkSms implements Consumer
|
|||
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])->find();
|
||||
$record = Db::table('sms_push_event')->where(['id' => $sms_push_event_id, 'status' => 0])->find();
|
||||
if($record) {
|
||||
// 查询是否是定时发送
|
||||
if($record['send_type'] == 2 && $record['send_time'] > date('Y-m-d H:i:s')) {
|
||||
|
|
@ -109,11 +109,9 @@ class SendMarkSms implements Consumer
|
|||
}
|
||||
}else {
|
||||
Log::info('商户【' . $record['shop_id'] . '】余额不足');
|
||||
return false;
|
||||
}
|
||||
}else {
|
||||
Log::info('商户【' . $record['shop_id'] . '】余额为空');
|
||||
return false;
|
||||
}
|
||||
sleep(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue