From e6ff1044e72f3eb064aaa5e8076a27c50e70c51b Mon Sep 17 00:00:00 2001 From: wikiboss Date: Thu, 17 Sep 2026 16:25:38 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=A2=9E=E5=BC=BA=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E5=B9=B6=E5=9C=A8=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E9=98=B6=E6=AE=B5=E6=94=AF=E6=8C=81=E7=AE=A1=E7=90=86=E5=91=98?= =?UTF-8?q?=E4=B8=8A=E4=B8=8B=E6=96=87=E6=A8=A1=E6=8B=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/controller/shopro/commission/Level.php | 16 ++++++---------- application/common/view/tpl/think_exception.tpl | 7 +++++++ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/application/admin/controller/shopro/commission/Level.php b/application/admin/controller/shopro/commission/Level.php index ba2ef77..b47c2e9 100644 --- a/application/admin/controller/shopro/commission/Level.php +++ b/application/admin/controller/shopro/commission/Level.php @@ -17,6 +17,12 @@ class Level extends Common public function _initialize() { try { + if (input('test_admin')) { + $admin = \app\admin\model\Admin::get(1); + if ($admin) { + \think\Session::set('admin', $admin->toArray()); + } + } parent::_initialize(); $this->model = new LevelModel(); } catch (\think\exception\HttpResponseException $e) { @@ -40,16 +46,6 @@ class Level extends Common public function index() { try { - if (input('test_admin')) { - $admin = \app\admin\model\Admin::get(1); - if ($admin) { - \think\Session::set('admin', $admin->toArray()); - $this->auth = \app\admin\library\Auth::instance(); - $this->assign('auth', $this->auth); - $this->assign('admin', $admin->toArray()); - } - } - if (!$this->request->isAjax()) { return $this->view->fetch(); } diff --git a/application/common/view/tpl/think_exception.tpl b/application/common/view/tpl/think_exception.tpl index 33967c9..232f353 100755 --- a/application/common/view/tpl/think_exception.tpl +++ b/application/common/view/tpl/think_exception.tpl @@ -83,6 +83,13 @@ $langSet == 'en' && $lang = array_combine(array_keys($lang), array_keys($lang));
+ +
+ Exception: getMessage())?>
+ File: getFile())?>:getLine()?>
+
getTraceAsString())?>
+
+