From 8a8552438fd79542742408645549e260f9210e38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Thu, 17 Oct 2024 16:53:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20241011000001_install_wechat20241011.php | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 plugin/think-plugs-wechat/stc/database/20241011000001_install_wechat20241011.php diff --git a/plugin/think-plugs-wechat/stc/database/20241011000001_install_wechat20241011.php b/plugin/think-plugs-wechat/stc/database/20241011000001_install_wechat20241011.php new file mode 100644 index 000000000..94d4aa0ef --- /dev/null +++ b/plugin/think-plugs-wechat/stc/database/20241011000001_install_wechat20241011.php @@ -0,0 +1,67 @@ +insertMenu(); + } + + /** + * 初始化系统菜单 + * @return void + * @throws \Exception + */ + private function insertMenu() + { + + // 初始化菜单数据 + PhinxExtend::write2menu([ + [ + 'name' => '微信管理', + 'sort' => '200', + 'subs' => Service::menu(), + ], + ], [ + 'url|node' => 'wechat/fans/index' + ]); + } +} \ No newline at end of file