chore: 优化异常诊断排除HttpResponseException
这个提交包含在:
@@ -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([
|
||||
|
||||
在新工单中引用
屏蔽一个用户