refactor: 重构语言协商中间件,简化语言解析逻辑并增强异常处理,更新相关配置以支持多环境开发

This commit is contained in:
2026-05-08 17:40:09 +08:00
parent 85e57782cc
commit e478597d13
11 changed files with 295 additions and 54 deletions

9
lang/zh/api.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
return [
'validation_failed' => '请求参数校验未通过。',
'client_error' => '请求无法完成。',
'not_found' => '请求的资源不存在。',
'too_many_requests' => '请求过于频繁,请稍后再试。',
'server_error' => '服务暂时不可用,请稍后再试。',
];