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

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] 账号信息
- [x] 扫码登录 - [x] 扫码登录
- [x] 登出 - [x] 登出
@ -18,14 +18,14 @@ MaxKey Flutter project.
- [x] 优化用户界面 - [x] 优化用户界面
- [x] 多语言 - [x] 多语言
页: 页:
- MaxKey LOGO - MaxKey LOGO
- 用户名、密码、验证码 - 用户名、密码、验证码
- 登 - 登
- 设置 - 设置
主页面: 主页面:
- 用户卡片(包括扫码登按钮) - 用户卡片(包括扫码登按钮)
- 添加 TOTP 按钮 - 添加 TOTP 按钮
- TOTP 列表(可删除某个 TOTP - TOTP 列表(可删除某个 TOTP

View File

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

View File

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

View File

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

View File

@ -22,7 +22,7 @@ class MaxKeyUserInfo {
/// ///
required this.displayName, required this.displayName,
/// ///
required this.username, required this.username,
/// ///
@ -146,7 +146,7 @@ class MaxKeyUserInfo {
/// ///
final String displayName; final String displayName;
/// ///
final String username; final String username;
/// ///