把“登陆”统一成“登录”

This commit is contained in:
Ferry-200
2024-09-03 14:13:49 +08:00
parent 18552f20d0
commit 42eb2aa49d
5 changed files with 14 additions and 14 deletions

View File

@@ -4,8 +4,8 @@ MaxKey Flutter project.
### 待做:
- [x] 账密登录
- [x] 手机号登
- [x] 保留登状态
- [x] 手机号登
- [x] 保留登状态
- [x] 账号信息
- [x] 扫码登录
- [x] 登出
@@ -18,14 +18,14 @@ MaxKey Flutter project.
- [x] 优化用户界面
- [x] 多语言
页:
页:
- MaxKey LOGO
- 用户名、密码、验证码
-
-
- 设置
主页面:
- 用户卡片(包括扫码登按钮)
- 用户卡片(包括扫码登按钮)
- 添加 TOTP 按钮
- TOTP 列表(可删除某个 TOTP

View File

@@ -12,8 +12,8 @@
"homePageUserCardGreetingNoon": "中午好",
"homePageUserCardGreetingAfternoon": "下午好",
"homePageUserCardGreetingEvening": "晚上好",
"homePageUserCardScanPage": "扫码登",
"homePageUserCardScanSucceed": "登成功",
"homePageUserCardScanPage": "扫码登",
"homePageUserCardScanSucceed": "登成功",
"loginPageSettingBtn": "设置",
"loginPageLoginViewUsername": "用户名",
@@ -39,7 +39,7 @@
"userPageFullUserInfoDialogTitle": "详细信息",
"userPageFullUserInfoDialogDisplayName": "姓名",
"userPageFullUserInfoDialogUsername": "登账号",
"userPageFullUserInfoDialogUsername": "登账号",
"userPageFullUserInfoDialogGender": "性别",
"userPageFullUserInfoDialogEmployeeNumber": "员工编号",
"userPageFullUserInfoDialogMobile": "手机号码",

View File

@@ -43,9 +43,9 @@ class MaxKey with ChangeNotifier {
if (error.type == DioExceptionType.badResponse) {
SCAFFOLD_MESSENGER_KEY.currentState?.showSnackBar(
SnackBar(
content: const Text("状态过期。请重新登"),
content: const Text("状态过期。请重新登"),
action: SnackBarAction(
label: "重新登",
label: "重新登",
onPressed: () async {
_dio.options.headers.remove(HttpHeaders.authorizationHeader);
await MaxKeyPersistent.instance.clearToken();

View File

@@ -83,7 +83,7 @@ class AuthnService {
);
if (res.data["code"] != 0) {
final msg = res.data["message"] ?? "失败";
final msg = res.data["message"] ?? "失败";
expectedErrorHandler(msg);
LOGGER.w(msg);
return false;
@@ -122,7 +122,7 @@ class AuthnService {
);
if (res.data["code"] != 0) {
final msg = res.data["message"] ?? "扫码登失败";
final msg = res.data["message"] ?? "扫码登失败";
expectedErrorHandler(msg);
LOGGER.w(msg);
return false;

View File

@@ -22,7 +22,7 @@ class MaxKeyUserInfo {
/// 姓名
required this.displayName,
/// 登账号
/// 登账号
required this.username,
/// 性别
@@ -146,7 +146,7 @@ class MaxKeyUserInfo {
/// 姓名
final String displayName;
/// 登账号
/// 登账号
final String username;
/// 性别