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

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

@@ -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;
/// 性别