mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 完成后端路由的生成函数
This commit is contained in:
parent
1aac0a2dcf
commit
a8563c4b38
@ -33,5 +33,6 @@ class UpdateAdminMenuData extends Migrator {
|
||||
$this->execute('UPDATE `admin_menu` SET `level` = 2 WHERE `level` = 0;');
|
||||
$this->execute('UPDATE `admin_menu` SET `auth` = 1 WHERE `url` != "admin/Login/index";');
|
||||
$this->execute('UPDATE `admin_menu` SET `permission` = 0 WHERE `url` = "admin/Login/index" OR `url` = "admin/Login/logout";');
|
||||
$this->execute('UPDATE `admin_menu` SET `method` = 2 WHERE `url` = "admin/Login/index" OR `url` LIKE "%/upload" OR `url` LIKE "%/add" OR `url` LIKE "%/edit%";');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user