管理员登录提前初始化权限数据

feat/task1-c-wallet
Devil 2021-08-07 10:08:06 +08:00
parent 1d7491b4d9
commit 6e06f6cc4b
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,7 @@
namespace app\service;
use think\facade\Db;
use app\service\AdminPowerService;
/**
* 管理员服务层
@ -508,6 +509,9 @@ class AdminService
MyCache(MyConfig('shopxo.cache_admin_left_menu_key').$admin['id'], null);
MyCache(MyConfig('shopxo.cache_admin_power_key').$admin['id'], null);
// 权限菜单初始化
AdminPowerService::PowerMenuInit();
return DataReturn('登录成功');
}
}