feat: 添加货币格式化功能,更新多个控制器以支持金额和余额的格式化显示,增强 API 响应的可读性
This commit is contained in:
@@ -18,7 +18,7 @@ final class AdminMessage
|
||||
/**
|
||||
* 取通用管理后台错误的用户可见文案(lang/{locale}/admin.php)。
|
||||
*
|
||||
* @param string $key 语言包键名,如 'unauthenticated', 'permission_denied'
|
||||
* @param string $key 语言包键名,如 'unauthenticated', 'permission_denied'
|
||||
*/
|
||||
public static function get(Request $request, string $key): string
|
||||
{
|
||||
@@ -38,7 +38,7 @@ final class AdminMessage
|
||||
/**
|
||||
* 取错误码对应的用户可见文案。
|
||||
*
|
||||
* @param int $code {@see ErrorCode} 管理端段(8110–8114)
|
||||
* @param int $code {@see ErrorCode} 管理端段(8110–8114)
|
||||
*/
|
||||
public static function errorCode(Request $request, int $code): string
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user