diff --git a/src/Handler.php b/src/Handler.php index 368abde..fc28591 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -164,7 +164,8 @@ protected function solveExtraException(Throwable $e): void $this->statusCode = $status['route'] ?? 404; } elseif ($e instanceof \TypeError) { $this->statusCode = 400; - $this->errorMessage = '参数类型与预期声明的参数类型不匹配'; + // 参数类型与预期声明的参数类型不匹配 + $this->errorMessage = '网络连接似乎有点不稳定。请检查您的网络!'; $this->error = $e->getMessage(); } elseif ($e instanceof ValidateException) { $this->statusCode = $status['validate'];