modified 优化代码

This commit is contained in:
zhaoxiang 2020-06-08 20:21:27 +08:00
parent a73e2d8501
commit 3752b42248

View File

@ -32,7 +32,7 @@ class RouterTool {
$context .= 'use think\facade\Route;' . PHP_EOL;
$context .= "Route::miss('api/Miss/index');" . PHP_EOL;
$menus = AdminMenu::all(['show' => 1]);
$menus = AdminMenu::all();
if ($menus) {
foreach ($menus as $menu) {
if ($menu['url']) {