入参修改

This commit is contained in:
machuanyu 2024-08-15 15:51:14 +08:00
parent c63fb86ea3
commit 868c8cd0d0
2 changed files with 4 additions and 4 deletions

View File

@ -98,9 +98,9 @@ class AuthInterceptor extends Interceptor {
headers["x-Authorization"] = xToken!;
}
if ((userInfo?.isExpired() ?? false) && userInfo?.termYear != '') {
/* if ((userInfo?.isExpired() ?? false) && userInfo?.termYear != '') {
headers["term-year"] = userInfo!.termYear;
}
}*/
options.headers = headers;
return super.onRequest(options, handler);

View File

@ -38,8 +38,8 @@ class AnnotateClassLogic extends GetxController with RequestToolMixin {
List<AnnotatedClass> data =
await getClient().getAnnotatedClassList(state.homeworkId.value);
state.classList.value = data;
print('state.classList[0]=${state.classList[0].finishTime}');
print('state.classList[1]=${state.classList[1].finishTime}');
/* print('state.classList[0]=${state.classList[0].finishTime}');
print('state.classList[1]=${state.classList[1].finishTime}');*/
for (var element in state.classList.value) {
int commitStudentCount = 0;
int noCommitStudentCount = 0;