bear-zd / ChaoXingReserveSeat

超星学习通图书馆抢座脚本
78 stars 86 forks source link

同样的token为空问题,我尝试了目前的两种方法仍然是报错 #23

Closed HH92465 closed 3 months ago

HH92465 commented 3 months ago

2024-07-23 15:30:17,302 - INFO - start time 15:30:17, action off 2024-07-23 15:30:17,302 - INFO - Global settings: SLEEPTIME: 0.2 ENDTIME: 22:00:00 CAPTCHA: custom RESERVE_NEXT_DAY: True 2024-07-23 15:30:17,302 - INFO - ----------- 13696633911 -- ['07:00', '08:00'] -- ['029'] try ----------- https://office.chaoxing.com/front/apps/seatengine/select?id=9086&day=2024-07-23&backLevel=2&seatId=953 2024-07-23 15:30:17,666 - INFO - User zdrdcmGc3AvU5WHWpL22lw== login successfully 2024-07-23 15:30:17,919 - INFO - Get token: 2024-07-23 15:30:17,919 - INFO - Start to resolve captcha token 2024-07-23 15:30:18,017 - INFO - Successfully get prepared captcha_token D19124A5CC86429FF4E0DB52A32E2418 2024-07-23 15:30:18,017 - INFO - Captcha Image URL-small https://captcha-c.chaoxing.com/slide/small/1D322AB9417EA5D651417742A528BC3C.jpg, URL-big https://captcha-c.chaoxing.com/slide/big/1D322AB9417EA5D651417742A528BC3C.jpg 2024-07-23 15:30:18,216 - INFO - Successfully calculate the captcha distance 240 2024-07-23 15:30:18,248 - INFO - Successfully resolve the captcha token {'error': 0, 'msg': 'ok', 'result': True, 'extraData': '{"validate":"validate_42sxgHoTPTKbt0uZxPJ7ssOvtXr3ZgZ1_D19124A5CC86429FF4E0DB52A32E2418"}'} 2024-07-23 15:30:18,248 - INFO - Captcha token validate_42sxgHoTPTKbt0uZxPJ7ssOvtXr3ZgZ1_D19124A5CC86429FF4E0DB52A32E2418 2024-07-23 15:30:18,248 - INFO - submit parameter {'roomId': '9086', 'startTime': '07:00', 'endTime': '08:00', 'day': '2024-07-24', 'seatNum': '029', 'captcha': 'validate_42sxgHoTPTKbt0uZxPJ7ssOvtXr3ZgZ1_D19124A5CC86429FF4E0DB52A32E2418', 'token': ''} 2024-07-23 15:30:18,281 - INFO - {'msg': '预约失败,请退出后重试!', 'success': False}

HH92465 commented 3 months ago

希望作者也可以帮我看看,信息在这里,之后我再删除{ "reserve": [ {"username": "13696633911", "password": "qweasdzxc123", "time": ["07:00","08:00"], "roomid":"9086", "seatid":["029"], "daysofweek": ["Monday" , "Tuesday", "Wednesday", "Thursday", "Friday","Sunday"] } ] }

bear-zd commented 3 months ago

请问有图书馆的邀请码吗,或者加微信bear_zidea联系一下可能得手机登陆学习通进行测试

bear-zd commented 3 months ago

目前贵校的部分内容集成到ext分支下的utils/huangshan_customed_reserve.py中,需要使用请修改main.py中的对应reserve类以正确的预约