把“登陆”统一成“登录”
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -22,7 +22,7 @@ class MaxKeyUserInfo {
|
||||
/// 姓名
|
||||
required this.displayName,
|
||||
|
||||
/// 登陆账号
|
||||
/// 登录账号
|
||||
required this.username,
|
||||
|
||||
/// 性别
|
||||
@@ -146,7 +146,7 @@ class MaxKeyUserInfo {
|
||||
/// 姓名
|
||||
final String displayName;
|
||||
|
||||
/// 登陆账号
|
||||
/// 登录账号
|
||||
final String username;
|
||||
|
||||
/// 性别
|
||||
|
||||
Reference in New Issue
Block a user