|
|
@ -233,7 +233,15 @@ class PromoteController extends BaseController
|
|
|
|
$this->assign("rules_count", count($rules));
|
|
|
|
$this->assign("rules_count", count($rules));
|
|
|
|
|
|
|
|
|
|
|
|
$promoteBelong = M('promote', 'tab_')->where(['id'=>get_pid()])->getField('company_belong');
|
|
|
|
$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],[]);
|
|
|
|
$redis = new \Org\RedisSDK\Redis(['host'=>'127.0.0.1','port'=>6379],[]);
|
|
|
|
$newcacheKey = "pop:newrule:set";
|
|
|
|
$newcacheKey = "pop:newrule:set";
|
|
|
|
if (!$redis->sIsMember($newcacheKey, get_pid())) {
|
|
|
|
if (!$redis->sIsMember($newcacheKey, get_pid())) {
|
|
|
|