模版提交修改
This commit is contained in:
@@ -22,10 +22,9 @@ class BirthdayGiftSms implements Consumer
|
||||
if($record) {
|
||||
// 待发送
|
||||
if($record['push_status'] == 'wait_push') {
|
||||
$user = Db::table('tb_shop_user')->where(['id' => $record['user_id']])->find();
|
||||
// 张松 需要加主模版ID
|
||||
$y_temp = Db::table('sms_shop_template')->where(['id' => $record['push_event_id']])->find();
|
||||
if($user && !empty($user['phone'])) {
|
||||
$user = Db::table('tb_shop_user')->where(['id' => $record['shop_user_id']])->find();
|
||||
$y_temp = Db::table('sms_shop_template')->where(['id' => $record['template_id']])->find();
|
||||
if($user) {
|
||||
// 检测余额
|
||||
$shop_money = Db::table('sms_shop_money')->where(['shop_id' => $record['main_shop_id']])->find();
|
||||
if($shop_money) {
|
||||
@@ -61,7 +60,6 @@ class BirthdayGiftSms implements Consumer
|
||||
Log::info('商户【' . $record['main_shop_id'] . '】余额为空');
|
||||
return false;
|
||||
}
|
||||
|
||||
}else {
|
||||
Log::info('【生日有礼】时查询用户不存在---》' . $record['user_id']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user