Update 20221013031926_install_admin_data.php

This commit is contained in:
邹景立 2022-10-27 13:48:26 +08:00
parent 3e6189ceb7
commit 5217883a26

View File

@ -17,8 +17,8 @@ class InstallAdminData extends Migrator
*/ */
public function change() public function change()
{ {
$this->_createUser(); $this->createUser();
$this->_createMenu(); $this->createMenu();
$this->_createConf(); $this->_createConf();
} }
@ -27,7 +27,7 @@ class InstallAdminData extends Migrator
* @return void * @return void
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
*/ */
private function _createUser() private function createUser()
{ {
// 检查是否存在 // 检查是否存在
$map = ['username' => 'admin']; $map = ['username' => 'admin'];
@ -45,7 +45,7 @@ class InstallAdminData extends Migrator
]); ]);
} }
private function _createMenu() private function createMenu()
{ {
// 初始化菜单数据 // 初始化菜单数据
ToolsExtend::write2menu([ ToolsExtend::write2menu([