diff --git a/Application/Home/Controller/PromoteController.class.php b/Application/Home/Controller/PromoteController.class.php index 5fea40bef..c08990848 100644 --- a/Application/Home/Controller/PromoteController.class.php +++ b/Application/Home/Controller/PromoteController.class.php @@ -233,7 +233,15 @@ class PromoteController extends BaseController $this->assign("rules_count", count($rules)); $promoteBelong = M('promote', 'tab_')->where(['id'=>get_pid()])->getField('company_belong'); - if (intval($promoteBelong) == 1) { + $belongs = M("document_pop_rules") + ->where(['id' => 2]) + ->getField('belongs'); + if(intval($belongs) == 2) { + $belongs_tag = 0; + }else { + $belongs_tag = 1; + } + if (intval($promoteBelong) == $belongs_tag) { $redis = new \Org\RedisSDK\Redis(['host'=>'127.0.0.1','port'=>6379],[]); $newcacheKey = "pop:newrule:set"; if (!$redis->sIsMember($newcacheKey, get_pid())) {