|
@@ -93,6 +93,20 @@ class BalanceCrontab implements JobInterface
|
|
'operators_name' => $val['operators_name'],
|
|
'operators_name' => $val['operators_name'],
|
|
'status' => 0,
|
|
'status' => 0,
|
|
];
|
|
];
|
|
|
|
+ //公众号消息模板推送屏蔽
|
|
|
|
+ if($insert['push_type']==1 && !empty($this->set['wechat_msg_id'])){
|
|
|
|
+ $wechat_msg_id = explode(",",$this->set['wechat_msg_id']);
|
|
|
|
+ if (in_array($insert['member_id'],$wechat_msg_id)) {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ //手机短信推送屏蔽
|
|
|
|
+ if($insert['push_type']==2 && !empty($this->set['sms_id'])){
|
|
|
|
+ $sms_id = explode(",",$this->set['sms_id']);
|
|
|
|
+ if (in_array($insert['member_id'],$sms_id)) {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
$model = BalancePushBody::create($insert);
|
|
$model = BalancePushBody::create($insert);
|
|
$body_id = $model->save();
|
|
$body_id = $model->save();
|
|
//开始推送
|
|
//开始推送
|