Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

评价和追评修复(业余玩家) #56

Open
danceking opened this issue Feb 22, 2024 · 4 comments
Open

评价和追评修复(业余玩家) #56

danceking opened this issue Feb 22, 2024 · 4 comments

Comments

@danceking
Copy link

1、评价“list index out of range”修复
错误表现:list index out of range
修改文件:jd_comment.py
修改位置:第288行后面添加如下代码

                opts['logger'].info(f'第{i + 1}个订单链接: %s',pid_data)
                if pid_data and pid_data[0] == 'javascript:void(0)':
                    opts['logger'].info(f'第{i + 1}个订单链接错误: %s',pid_data)
                    continue

重点是判断'javascript:void(0)',大家根据情况适当调整。

改后效果:
微信截图_20240222154039
微信截图_20240222154054

2、追评无反应修复
错误表现:list index out of range
修改文件:jd_comment.py
修改位置:第415行修改代码
原始
'//*[@id="main"]/div[2]/div[2]/table/tr[@class="tr-bd"]')
修改为
'//*[@id="main"]/div[2]/div[2]/table/tbody/tr[@class="tr-bd"]')

改后效果:
微信截图_20240223025252

@danceking danceking changed the title 评价和追评得修复(业余玩家) 评价和追评修复(业余玩家) Feb 22, 2024
@him95
Copy link

him95 commented Mar 8, 2024

可以可以

@hsy66
Copy link

hsy66 commented Mar 20, 2024

能贴图一下修改的样子吗,缩进好像有点问题

@xixici
Copy link

xixici commented Mar 21, 2024

已 PR

@ksmarisa520
Copy link

well done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants