From 6ef1c1cf62eb15b211c7f925a15cbbcc0a327bf3 Mon Sep 17 00:00:00 2001 From: coaixy Date: Mon, 1 Aug 2022 12:33:50 +0800 Subject: [PATCH] change(Utils.py):change get method --- Utils.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Utils.py b/Utils.py index e83b3e8..86dcfd2 100644 --- a/Utils.py +++ b/Utils.py @@ -112,9 +112,11 @@ class main: print("start:"+courseId) def finish(self,finishId): + params = { + "callback":"", + "userCourseId":finishId, + "tenantCode":self.tenantCode + } url = "https://weiban.mycourse.cn/pharos/usercourse/finish.do" - url += "?callback=&userCourseId=" - url += finishId - url += "&tenantCode="+str(self.tenantCode) - requests.get(url=url) + requests.get(url=url,params=params) print("finish:"+finishId)