Bläddra i källkod

Merge branch 'master' of https://gogs.superdesk.cn/wallesc/superdesk-easyswoole

qiushiyong 1 år sedan
förälder
incheckning
7d6f48ce5d
1 ändrade filer med 14 tillägg och 0 borttagningar
  1. 14 0
      App/Crontab/BalanceCrontab.php

+ 14 - 0
App/Crontab/BalanceCrontab.php

@@ -108,6 +108,20 @@ class BalanceCrontab implements JobInterface
                     'operators_name' => $val['operators_name'],
                     '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);
                 $body_id = $model->save();
                 //开始推送