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

一个自选码的小问题 #11

Closed
historicgracer opened this issue Jan 24, 2022 · 3 comments
Closed

一个自选码的小问题 #11

historicgracer opened this issue Jan 24, 2022 · 3 comments

Comments

@historicgracer
Copy link

historicgracer commented Jan 24, 2022

个人收藏抽奖,抽到860个商品左右,就必定出现自选码已存在的失败提示,我收藏了接近900个商品,然后后面剩下的全部自选码都是重复的了,重新运行直接跳过已抽奖的了。

我想问的是自选码避免不了重复吗(我改了下,碰到存在就循环抽。。)

1643033133(1)

@tzwsoho
Copy link
Owner

tzwsoho commented Jan 28, 2022

建议你改一下代码,不要调用获取随机自选码的接口,直接自己生成自选码就可以了

@tzwsoho tzwsoho closed this as completed Jan 28, 2022
@historicgracer
Copy link
Author

那个。。纠正一下,是我的问题,获取商品最大一次20个,所以我20一组循环几十次一次性放一起,因为数组倒了下顺序,数组开头第一组商品获取了两次,不是接口问题,错误信息也没认真看写的意思是商品重复抽了。。。尴尬

@historicgracer
Copy link
Author

捕获

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

2 participants