From 868c8cd0d0ec665d8067eaf2e0b2b77f72d9d222 Mon Sep 17 00:00:00 2001 From: machuanyu <840649825@qq.com> Date: Thu, 15 Aug 2024 15:51:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E5=8F=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- making_school_asignment_app/lib/common/request/rest_dio.dart | 4 ++-- .../children/annotate_class/annotate_class_logic.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/making_school_asignment_app/lib/common/request/rest_dio.dart b/making_school_asignment_app/lib/common/request/rest_dio.dart index e94eba6..0c53d11 100644 --- a/making_school_asignment_app/lib/common/request/rest_dio.dart +++ b/making_school_asignment_app/lib/common/request/rest_dio.dart @@ -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); diff --git a/making_school_asignment_app/lib/page/home_page/children/annotate_class/annotate_class_logic.dart b/making_school_asignment_app/lib/page/home_page/children/annotate_class/annotate_class_logic.dart index e34e171..aa4d9e2 100644 --- a/making_school_asignment_app/lib/page/home_page/children/annotate_class/annotate_class_logic.dart +++ b/making_school_asignment_app/lib/page/home_page/children/annotate_class/annotate_class_logic.dart @@ -38,8 +38,8 @@ class AnnotateClassLogic extends GetxController with RequestToolMixin { List 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;