|
|
@ -251,7 +251,9 @@ class PromoteController extends BaseController
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$match_newrules = [];
|
|
|
|
$match_newrules = [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$match_newrules_route = M("document_pop_rules")
|
|
|
|
|
|
|
|
->where(['id' => 2])
|
|
|
|
|
|
|
|
->getField('document_route');
|
|
|
|
$redis = new \Org\RedisSDK\Redis(['host'=>'127.0.0.1','port'=>6379],[]);
|
|
|
|
$redis = new \Org\RedisSDK\Redis(['host'=>'127.0.0.1','port'=>6379],[]);
|
|
|
|
$cacheKey = "pop:rule:set";
|
|
|
|
$cacheKey = "pop:rule:set";
|
|
|
|
if (!$redis->sIsMember($cacheKey, get_pid())) {
|
|
|
|
if (!$redis->sIsMember($cacheKey, get_pid())) {
|
|
|
@ -271,6 +273,7 @@ class PromoteController extends BaseController
|
|
|
|
|
|
|
|
|
|
|
|
$this->assign("match_rules_id", $match_rules ? json_encode(array_column($match_rules, 'id')) : 'null');
|
|
|
|
$this->assign("match_rules_id", $match_rules ? json_encode(array_column($match_rules, 'id')) : 'null');
|
|
|
|
$this->assign("match_newrules_id", $match_newrules ? json_encode(array_column($match_newrules, 'id')) : 'null');
|
|
|
|
$this->assign("match_newrules_id", $match_newrules ? json_encode(array_column($match_newrules, 'id')) : 'null');
|
|
|
|
|
|
|
|
$this->assign("match_newrules_route", $match_newrules_route);
|
|
|
|
|
|
|
|
|
|
|
|
$this->assign("user_count", $user_count);
|
|
|
|
$this->assign("user_count", $user_count);
|
|
|
|
$this->assign("total_money", $total_money);
|
|
|
|
$this->assign("total_money", $total_money);
|
|
|
|