refactor: 重构语言协商中间件,简化语言解析逻辑并增强异常处理,更新相关配置以支持多环境开发
This commit is contained in:
9
lang/zh/api.php
Normal file
9
lang/zh/api.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'validation_failed' => '请求参数校验未通过。',
|
||||
'client_error' => '请求无法完成。',
|
||||
'not_found' => '请求的资源不存在。',
|
||||
'too_many_requests' => '请求过于频繁,请稍后再试。',
|
||||
'server_error' => '服务暂时不可用,请稍后再试。',
|
||||
];
|
||||
Reference in New Issue
Block a user