Closed tomgaveen closed 1 month ago
TypeError: 'NoneType' object is not subscriptable captcha = self.resolve_captcha() if self.enable_slider else "" File "C:\Users\Administrator\PycharmProjects\抢座5.0\utils\reserve.py", line 125, in resolve_captcha x = self.x_distance(bg, tp) File "C:\Users\Administrator\PycharmProjects\抢座5.0\utils\reserve.py", line 209, in x_distance tp_img = cut_slide(tp) File "C:\Users\Administrator\PycharmProjects\抢座5.0\utils\reserve.py", line 185, in cut_slide x = self.x_distance(bg, tp) File "C:\Users\Administrator\PycharmProjects\抢座5.0\utils\reserve.py", line 209, in x_distance 2024-09-24 22:34:07,966 - INFO - Process finished for batch of 6 users. tp_img = cut_slide(tp) File "C:\Users\Administrator\PycharmProjects\抢座5.0\utils\reserve.py", line 185, in cut_slide slider_part = slider_image[:, :, :3] TypeError: 'NoneType' object is not subscriptable x = self.x_distance(bg, tp) File "C:\Users\Administrator\PycharmProjects\抢座5.0\utils\reserve.py", line 209, in x_distance tp_img = cut_slide(tp) File "C:\Users\Administrator\PycharmProjects\抢座5.0\utils\reserve.py", line 185, in cut_slide slider_part = slider_image[:, :, :3] TypeError: 'NoneType' object is not subscriptable tp_img = cut_slide(tp) File "C:\Users\Administrator\PycharmProjects\抢座5.0\utils\reserve.py", line 185, in cut_slide slider_part = slider_image[:, :, :3] TypeError: 'NoneType' object is not subscriptable 2024-09-24 22:34:07,972 - INFO - Process finished for batch of 4 users. slider_part = slider_image[:, :, :3] TypeError: 'NoneType' object is not subscriptable
手动预约一下试一下,可能是你们学校现在预约不需要滑块验证(有人遇到过类似的问题),如果是rebuild分支的话就把main.py中的ENABLE_SLIDER改为False,如果是ext分支的话就把reserve = CAPTCHA_METHOD["custom"] 的custom改成 default 就好了.
我的之前就要 然后现在改了验证方式了
现在改成什么了?
点击文字 textclick
这种点选式的验证方式目前不支持
提供一下日志吧