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()
|
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([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user