diff --git a/lib/src/connector/course_connector.dart b/lib/src/connector/course_connector.dart index a063621f..14d89776 100644 --- a/lib/src/connector/course_connector.dart +++ b/lib/src/connector/course_connector.dart @@ -55,7 +55,7 @@ class CourseConnector { String value = node.attributes['value']; data[name] = value; } - String jumpUrl = "https://app.ntut.edu.tw/${tagNode.getElementsByTagName("form")[0].attributes["action"]}"; + String jumpUrl = "${NTUTConnector.host}${tagNode.getElementsByTagName("form")[0].attributes["action"]}"; parameter = ConnectorParameter(jumpUrl); parameter.data = data; final response = await Connector.getDataByPostResponse(parameter); diff --git a/lib/src/connector/ntut_connector.dart b/lib/src/connector/ntut_connector.dart index 69cdb6e1..19cb8426 100644 --- a/lib/src/connector/ntut_connector.dart +++ b/lib/src/connector/ntut_connector.dart @@ -26,7 +26,7 @@ enum NTUTConnectorStatus { } class NTUTConnector { - static const host = "https://app.ntut.edu.tw/"; + static const host = "https://nportal.ntut.edu.tw/"; static const _getPictureUrl = "${host}photoView.do"; static const _getTreeUrl = "${host}aptreeList.do"; static const _getCalendarUrl = "${host}calModeApp.do"; diff --git a/pubspec.yaml b/pubspec.yaml index 69380169..43d6cdef 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -20,7 +20,7 @@ dependencies: tat_core: git: url: git@github.com:NTUT-NPC/TAT-Core.git - ref: e5a9259946f1139fa61a784916192915831fe2c5 # restricted by dart language version. (<3) + ref: 7611fe96ff2bb7bb5341c742d94f869d86d33e1c # restricted by dart language version. (<3) path: ^1.8.2 # restricted by flutter sdk. path_provider: ^2.0.15