Skip to content

Commit

Permalink
[fix]不要再诺曼底登陆了
Browse files Browse the repository at this point in the history
  • Loading branch information
hxphieno committed Sep 3, 2024
1 parent 2b05daa commit b93f27f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/auth/network/auth_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class AuthService with AsyncTimer {
});
}

/// 登陆时获取短信验证码
/// 登录时获取短信验证码
static getCaptchaOnLogin(String phone,
{required OnSuccess onSuccess, required OnFailure onFailure}) async {
AsyncTimer.runRepeatChecked('getCaptchaOnLogin', () async {
Expand Down
2 changes: 1 addition & 1 deletion lib/auth/view/login/login_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class _LoginHomeWidgetState extends State<LoginHomeWidget> {
RichText(
textAlign: TextAlign.center,
text: TextSpan(
text: "首次登录微北洋请使用天外天账号密码登录\n在登陆后绑定手机号码即可手机验证登录",
text: "首次登录微北洋请使用天外天账号密码登录\n在登录后绑定手机号码即可手机验证登录",
style: TextUtil.base.normal.NotoSansSC
.sp(12)
.w400
Expand Down
2 changes: 1 addition & 1 deletion lib/auth/view/login/login_pw_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ class _LoginPwWidgetState extends State<LoginPwWidget> {
),
),
),
SizedBox(height: 23), //这里的数值调整是为了两个界面的短信登陆等位置在同一个水平线上
SizedBox(height: 23), //这里的数值调整是为了两个界面的短信登录等位置在同一个水平线上
Row(
children: [
Spacer(),
Expand Down
2 changes: 1 addition & 1 deletion lib/commons/preferences/common_prefs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class CommonPreferences {
static final lastActivityDialogShownDate =
PrefsBean<String>('lastActivityDialogShownDate', '');

/// 是否为初次使用此app(重新登陆也算
/// 是否为初次使用此app(重新登录也算
static final firstPrivacy = PrefsBean<bool>('firstPrivacy', true);
static final firstClassesDialog = PrefsBean<bool>('firstClassesDialog', true);

Expand Down
4 changes: 2 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ class _StartUpWidgetState extends State<StartUpWidget> {
context.read<ExamProvider>().readPref();
context.read<CourseProvider>().readPref();

/// 如果登陆过,尝试刷新token
/// 如果登录过,尝试刷新token
if (CommonPreferences.isLogin.value &&
CommonPreferences.token.value != '') {
Future.delayed(
Expand Down Expand Up @@ -555,7 +555,7 @@ class _StartUpWidgetState extends State<StartUpWidget> {
),
);
} else {
/// 没登陆过的话,多看一会的启动页再跳转到登录页
/// 没登录过的话,多看一会的启动页再跳转到登录页
Future.delayed(const Duration(seconds: 1)).then(
(_) => Navigator.pushReplacementNamed(context, AuthRouter.login));
}
Expand Down

0 comments on commit b93f27f

Please sign in to comment.