Skip to content

Commit 156d178

Browse files
committed
fixed
1 parent 07093b5 commit 156d178

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

app/install/Installation.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,8 @@ public static function install(string $version = ''): void
4545
if (!Menu::get(self::MENU_KEY)) {
4646
Menu::import(include __DIR__ . '/menu.php');
4747
}
48-
//安装动态令牌菜单
49-
if (!Menu::get('app\admin\controller\TotpController::class')) {
50-
Menu::import(include __DIR__ . '/menu.php');
51-
}
5248
} catch (\Error|\Exception|\Throwable $throwable) {
53-
echo '【中间件安装必须插件】异常:'. $throwable->getMessage() . PHP_EOL;
49+
echo '【中间件安装必须插件】异常:' . $throwable->getMessage() . PHP_EOL;
5450
} finally {
5551
Util::resumeFileMonitor();
5652
}

app/middleware/SessionId.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace app\middleware;
44

5+
use Exception;
56
use Webman\Http\Request;
67
use Webman\Http\Response;
78
use Webman\MiddlewareInterface;
@@ -16,6 +17,7 @@ class SessionId implements MiddlewareInterface
1617
* @param \support\Request|Request $request
1718
* @param callable $handler
1819
* @return Response
20+
* @throws Exception
1921
*/
2022
public function process(\support\Request|Request $request, callable $handler): Response
2123
{

0 commit comments

Comments
 (0)