Skip to content

Commit

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

Expand All @@ -99,7 +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.trace(f"原始章节列表内容:\n{_resp.text}")
logger.info("课程章节读取成功...")
return decode_course_point(_resp.text)

Expand All @@ -109,7 +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.trace(f"原始任务点列表内容:\n{_resp.text}")
logger.info("章节任务点读取成功...")
return _job_list, _job_info

Expand Down
4 changes: 0 additions & 4 deletions api/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ def decode_course_card(_text: str):
_job_info["cardid"] = _cards["defaults"]["cardid"]
_job_info["cpi"] = _cards["defaults"]["cpi"]
_job_info["qnenc"] = _cards["defaults"]["qnenc"]
_job_info["ktoken"] = _cards["defaults"]["ktoken"]
_job_info["ktoken"] = _cards["defaults"]["ktoken"]
_job_info["ktoken"] = _cards["defaults"]["ktoken"]
_job_info["ktoken"] = _cards["defaults"]["ktoken"]
_cards = _cards["attachments"]
_job_list = []
for _card in _cards:
Expand Down

0 comments on commit 86bb34b

Please sign in to comment.