Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/repository/xidian_ids/ehall_session.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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),
Expand Down
8 changes: 2 additions & 6 deletions lib/repository/xidian_ids/ids_session.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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] "
Expand Down Expand Up @@ -183,14 +183,10 @@ class IDSSession extends NetworkSession {
"Ready to get the login webpage.",
);
}
final loginQueryParameters = <String, String>{'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);

Expand Down