mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update 20221013031926_install_admin_data.php
This commit is contained in:
parent
3e6189ceb7
commit
5217883a26
@ -17,8 +17,8 @@ class InstallAdminData extends Migrator
|
||||
*/
|
||||
public function change()
|
||||
{
|
||||
$this->_createUser();
|
||||
$this->_createMenu();
|
||||
$this->createUser();
|
||||
$this->createMenu();
|
||||
$this->_createConf();
|
||||
}
|
||||
|
||||
@ -27,7 +27,7 @@ class InstallAdminData extends Migrator
|
||||
* @return void
|
||||
* @throws \think\db\exception\DbException
|
||||
*/
|
||||
private function _createUser()
|
||||
private function createUser()
|
||||
{
|
||||
// 检查是否存在
|
||||
$map = ['username' => 'admin'];
|
||||
@ -45,7 +45,7 @@ class InstallAdminData extends Migrator
|
||||
]);
|
||||
}
|
||||
|
||||
private function _createMenu()
|
||||
private function createMenu()
|
||||
{
|
||||
// 初始化菜单数据
|
||||
ToolsExtend::write2menu([
|
||||
|
Loading…
x
Reference in New Issue
Block a user