diff --git a/lib/repository/xidian_ids/ehall_session.dart b/lib/repository/xidian_ids/ehall_session.dart index 28f908b1..e5f94b47 100644 --- a/lib/repository/xidian_ids/ehall_session.dart +++ b/lib/repository/xidian_ids/ehall_session.dart @@ -51,7 +51,7 @@ class EhallSession extends IDSSession { }) async { String location = await super.login( target: - "https://ehall.xidian.edu.cn:443/login?service=https://ehall.xidian.edu.cn/new/index.html", + "https://ehall.xidian.edu.cn/login?service=https://ehall.xidian.edu.cn/new/index.html", username: username, password: password, sliderCaptcha: sliderCaptcha, @@ -78,7 +78,7 @@ class EhallSession extends IDSSession { if (!await isLoggedIn()) { String location = await super.checkAndLogin( target: - "https://ehall.xidian.edu.cn:443/login?" + "https://ehall.xidian.edu.cn/login?" "service=https://ehall.xidian.edu.cn/new/index.html", sliderCaptcha: (String cookieStr) => SliderCaptchaClientProvider(cookie: cookieStr).solve(null), diff --git a/lib/repository/xidian_ids/ids_session.dart b/lib/repository/xidian_ids/ids_session.dart index c37df679..d3dc7f89 100644 --- a/lib/repository/xidian_ids/ids_session.dart +++ b/lib/repository/xidian_ids/ids_session.dart @@ -120,7 +120,7 @@ class IDSSession extends NetworkSession { ); var data = await dioNoOfflineCheck.get( "https://ids.xidian.edu.cn/authserver/login", - queryParameters: {'type': 'userNameLogin', 'service': target}, + queryParameters: {'service': target}, ); log.info( "[IDSSession][checkAndLogin] " @@ -183,14 +183,10 @@ class IDSSession extends NetworkSession { "Ready to get the login webpage.", ); } - final loginQueryParameters = {'type': 'userNameLogin'}; - if (target != null) { - loginQueryParameters['service'] = target; - } var response = await dioNoOfflineCheck .get( "https://ids.xidian.edu.cn/authserver/login", - queryParameters: loginQueryParameters, + queryParameters: target != null ? {'service': target} : null, ) .then((value) => value.data);