From 0d4459c1018685d3844b3e5f381955109dab67a7 Mon Sep 17 00:00:00 2001 From: wikiboss Date: Thu, 17 Sep 2026 16:21:32 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E8=AF=8A=E6=96=AD=E6=8E=92=E9=99=A4HttpResponseException?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/shopro/commission/Level.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/admin/controller/shopro/commission/Level.php b/application/admin/controller/shopro/commission/Level.php index 1fe66c0..7355dc2 100644 --- a/application/admin/controller/shopro/commission/Level.php +++ b/application/admin/controller/shopro/commission/Level.php @@ -19,6 +19,8 @@ class Level extends Common try { parent::_initialize(); $this->model = new LevelModel(); + } catch (\think\exception\HttpResponseException $e) { + throw $e; } catch (\Throwable $e) { header('Content-Type: application/json; charset=utf-8'); echo json_encode([ @@ -57,6 +59,8 @@ class Level extends Common $list = $this->model->sheepFilter()->select(); $this->success('全部等级', null, $list); + } catch (\think\exception\HttpResponseException $e) { + throw $e; } catch (\Throwable $e) { header('Content-Type: application/json; charset=utf-8'); echo json_encode([