Commit bb5e08ea authored by hujun's avatar hujun

[0]

parent 86fb3da2
......@@ -235,13 +235,14 @@ class RedisCacheService
$field = 'id,name,title,pid,is_menu';
$data = $m_auth_rule->getRule($field, ['name'=>$name,'status'=>0]);
$this->setRedisCache($this->rule_key . $name, $data[0]);
$result = $data[0];
} catch (\Exception $e) {
$data = [];
$result = [];
}
} else {
$data = json_decode($data, true);
$result = json_decode($data, true);
}
return $data;
return $result;
}
/**
......
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