chore: 优化异常诊断排除HttpResponseException

这个提交包含在:
wikiboss
2026-09-17 16:21:32 +08:00
父节点 98c40ce463
当前提交 0d4459c101

查看文件

@@ -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([