Update 20221013045839_install_user_data.php

This commit is contained in:
邹景立 2022-10-27 11:53:42 +08:00
parent 4c694cffc6
commit 2f0aadbe65

View File

@ -11,17 +11,16 @@ class InstallUserData extends Migrator
{
public function change()
{
$this->createMenu();
$this->createRegion();
$this->createMenu() && $this->createRegion();
}
/**
* 创建菜单
* @return void
* @return boolean
*/
private function createMenu()
private function createMenu(): bool
{
ToolsExtend::write2menu([
return ToolsExtend::write2menu([
[
'name' => '总控台',
'subs' => [
@ -69,7 +68,7 @@ class InstallUserData extends Migrator
/**
* 写入默认区域数据
* @return void
* @return mixed
* @throws \think\db\exception\DbException
*/
private function createRegion()