From 731fbd1986e183e7a8cbaf8bcb004fa8d658e16a Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Thu, 9 Apr 2020 13:31:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/Controller/PromoteController.class.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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())) {