XYZliang / AutoZFBXiaoYuanFangYiSign

江西高校支付宝校园防疫小程序的自动打卡Python脚本+GitHub自动打卡+云函数自动打卡
GNU General Public License v3.0
75 stars 54 forks source link

老师打卡怎么修改 #61

Open jiangjiangla opened 2 years ago

jiangjiangla commented 2 years ago

{

"errorCode": -1,

"errorMessage": "user code exception caught",

"requestId": "81fc89cf-103d-45c6-9b3b-8ff8554086b9",

"stackTrace": "Traceback (most recent call last):\n File \"/var/user/sign.py\", line 509, in cloudFun\n DoSign()\n File \"/var/user/sign.py\", line 482, in DoSign\n return_state = start(signID)\n File \"/var/user/sign.py\", line 307, in start\n if login() == 'ERROR':\n File \"/var/user/sign.py\", line 122, in login\n if verify(cookie) == True:\n File \"/var/user/sign.py\", line 139, in verify\n if sign_history(cookie=cookie, check_exit=True):\n File \"/var/user/sign.py\", line 180, in sign_history\n last_dic = res_dic['data']['list'][0]\nIndexError: list index out of range",

"statusCode": 430

}

jiangjiangla commented 2 years ago

自己解决了 151行改为 url = 'https://fxgl.jx.edu.cn/' + str(schoolID) + '/teacher/teacherIsQd' 172行改为 url = 'https://fxgl.jx.edu.cn/' + str(schoolID) + '/teacher/pageTeacherQdInfoByZgh' 275行改为 url = 'https://fxgl.jx.edu.cn/' + str(schoolID) + '/teacher/saveTea' 三处改完后实测老师可以打

XYZliang commented 2 years ago

感谢反馈,后期进行修改