修改错误

This commit is contained in:
augushong
2020-05-18 22:31:35 +08:00
parent 217120d274
commit 04134e3b41
2 changed files with 2 additions and 1 deletions

View File

@@ -225,6 +225,7 @@ function check_permission($key,$admin_id = null)
$model_permission = Cache::get($cache_key);
if (empty($model_permission)) {
$model_permission = AdminPermission::where('key',$key)->find();
Cache::set($cache_key,$model_permission);
}
if (empty($model_permission)) {