Skip to content

Commit

Permalink
修复[BUG](#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samueli924 committed Nov 15, 2023
1 parent cf275b5 commit 6619180
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def get_course_list(self):
}
logger.trace("正在读取所有的课程列表...")
_resp = _session.post(_url, data=_data)
logger.trace(f"原始课程列表内容:\n{_resp.text}")
logger.info("课程列表读取完毕...")
return decode_course_list(_resp.text)

Expand All @@ -98,6 +99,7 @@ def get_course_point(self, _courseid, _clazzid, _cpi):
_url = f"https://mooc2-ans.chaoxing.com/mooc2-ans/mycourse/studentcourse?courseid={_courseid}&clazzid={_clazzid}&cpi={_cpi}&ut=s"
logger.trace("开始读取课程所有章节...")
_resp = _session.get(_url)
logger.trace(f"原始章节列表内容:\n{_resp.text}")
logger.info("课程章节读取成功...")
return decode_course_point(_resp.text)

Expand All @@ -107,6 +109,7 @@ def get_job_list(self, _clazzid, _courseid, _cpi, _knowledgeid):
logger.trace("开始读取章节所有任务点...")
_resp = _session.get(_url)
_job_list, _job_info = decode_course_card(_resp.text)
logger.trace(f"原始任务点列表内容:\n{_resp.text}")
logger.info("章节任务点读取成功...")
return _job_list, _job_info

Expand Down

0 comments on commit 6619180

Please sign in to comment.