From 2d5cb554e8fb9dcaef3889fe0a3fcf1b1d7927d5 Mon Sep 17 00:00:00 2001 From: lhx-666-cool Date: Wed, 13 May 2026 14:49:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BA=86=E5=AF=B9=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D500=E6=8A=A5=E9=94=99=E6=B2=A1=E6=9C=89=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/repository/xidian_ids/ehall_session.dart | 4 ++-- lib/repository/xidian_ids/ids_session.dart | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) 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);