mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改数据库
This commit is contained in:
parent
804889743a
commit
3e6189ceb7
@ -26,10 +26,11 @@ class InstallWechatData extends Migrator
|
||||
*/
|
||||
private function createMenu()
|
||||
{
|
||||
// 检查菜单数据
|
||||
$map = ['node' => 'wechat/config/options'];
|
||||
if (SystemMenu::mk()->where($map)->count() > 0) {
|
||||
return;
|
||||
}
|
||||
if (SystemMenu::mk()->where($map)->count() > 0) return;
|
||||
|
||||
// 写入微信菜单
|
||||
ToolsExtend::write2menu([
|
||||
[
|
||||
'name' => '微信管理',
|
||||
|
@ -9,9 +9,14 @@ use think\migration\Migrator;
|
||||
*/
|
||||
class InstallUserData extends Migrator
|
||||
{
|
||||
/**
|
||||
* @return void
|
||||
* @throws \think\db\exception\DbException
|
||||
*/
|
||||
public function change()
|
||||
{
|
||||
$this->createMenu() && $this->createRegion();
|
||||
$this->createMenu();
|
||||
$this->createRegion();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user