This commit is contained in:
sion
2026-04-07 01:05:05 +08:00
parent edad10ff06
commit 5ca1274607
83 changed files with 1561 additions and 1241 deletions

View File

@@ -1,4 +1,4 @@
/// 用模型
/// 用模型
class User {
final int id;
final String username;
@@ -62,21 +62,21 @@ class User {
};
}
/// 获取头像显示文字(用名首字母)
/// 獲取頭像顯示文字(用名首字母)
String get avatarText =>
username.isNotEmpty ? username.substring(0, 1).toUpperCase() : 'U';
/// KYC 状态文字
/// KYC 狀態文字
String get kycStatusText {
switch (kycStatus) {
case 0:
return '认证';
return '認證';
case 1:
return '核中';
return '核中';
case 2:
return '认证';
return '認證';
case 3:
return '认证失败';
return '認證失敗';
default:
return '未知';
}