Commit 999e04c9 authored by hujun's avatar hujun

$rule_data

parent 007deaf7
...@@ -59,7 +59,7 @@ class VipService ...@@ -59,7 +59,7 @@ class VipService
} }
$rule_data = $this->redisCache->authCache($name); $rule_data = $this->redisCache->authCache($name);
if (empty($auth_group_id)) { if (empty($rule_data)) {
$fields = 'id'; $fields = 'id';
$auth_rule_id = $this->rulesModel->getAuthRuleByName($name, $fields); $auth_rule_id = $this->rulesModel->getAuthRuleByName($name, $fields);
} else { } else {
...@@ -126,7 +126,7 @@ class VipService ...@@ -126,7 +126,7 @@ class VipService
} }
$rule_data = $this->redisCache->authCache($name); $rule_data = $this->redisCache->authCache($name);
if (empty($auth_group_id)) { if (empty($rule_data)) {
$auth_rule_id = $this->rulesModel->getAuthRuleByName($name, 'id'); $auth_rule_id = $this->rulesModel->getAuthRuleByName($name, 'id');
} else { } else {
$auth_rule_id = $rule_data['id']; $auth_rule_id = $rule_data['id'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment