Coder Social home page Coder Social logo

Comments (7)

tychxn avatar tychxn commented on May 13, 2024

谢谢,我明天查一下。

from jd-assistant.

tychxn avatar tychxn commented on May 13, 2024

hi,

最近有点忙不好意思,我测试了一下,发现代码目前还是能正常抢购的。

  • 所有抢购活动都要登陆后才能进行。
  • 在定时秒杀时,如果出现获取不到抢购地址的情况,多数时因为抢购的商品为新产品,抢购地址JD后台还没有配置进去。一般新产品第一次发售时,抢购地址是在抢购的前几分钟才能获取到;如果是老产品,那么就是随时能够获取到了。
  • https://marathon.jd.com/seckillnew/orderService/pc/init.action该链接是用于获取抢购提交订单时的初始化数据的,不是用于获取秒杀地址的。该链接对应的方法自动调用,无需手动调用。

如果还有问题,欢迎联系[email protected]~

from jd-assistant.

hermit2018 avatar hermit2018 commented on May 13, 2024

1
这个报错是涉密原因啊

from jd-assistant.

tychxn avatar tychxn commented on May 13, 2024

请问你是修改过代码了吗?

jd-assistant.py文件第930行,
原来的代码是:https://github.com/tychxn/jd-assistant/blob/master/jd_assistant.py#L930

default_address = init_info['addressList'][0]  # 默认地址dict

你的代码是:

default_address = init_info['addressList'][1]  # 默认地址dict

from jd-assistant.

hermit2018 avatar hermit2018 commented on May 13, 2024

的确改过了 因为init_info['addressList'][0]也是报错的这个 所以我改成了1 还是报错这个

from jd-assistant.

tychxn avatar tychxn commented on May 13, 2024

这个说明后台返回的地址信息为空,麻烦查一下是否将地址设置为默认地址。

from jd-assistant.

hermit2018 avatar hermit2018 commented on May 13, 2024

应该是我传参有问题 ,我又试了遍可以了 谢谢大佬

from jd-assistant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.