From f0dfb0b156a36b9ea217718dedaab6d5d830b533 Mon Sep 17 00:00:00 2001 From: liufumingren Date: Mon, 21 Sep 2026 17:41:51 +0800 Subject: [PATCH] 1 --- application/index/controller/Index.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/index/controller/Index.php b/application/index/controller/Index.php index 0da2b1f..6a8cb1f 100644 --- a/application/index/controller/Index.php +++ b/application/index/controller/Index.php @@ -536,8 +536,9 @@ class Index extends Frontend return $this->view->fetch('auth_waiting'); } catch (\Exception $e) { - \think\Log::error('授权回调处理异常:' . $e->getMessage()); - return view('error', ['msg' => '系统处理异常,请稍后重试']); + \think\Log::error('授权回调处理异常:' . $e->getMessage() . ' @ ' . $e->getFile() . ':' . $e->getLine() . "\n" . $e->getTraceAsString()); + // 调试期直接输出异常信息 + return view('error', ['msg' => $e->getMessage() . ' @ ' . basename($e->getFile()) . ':' . $e->getLine()]); } } public function auth($state)