Code Monkey home page Code Monkey logo

Comments (4)

tychxn avatar tychxn commented on May 18, 2024

根据返回信息 应该是使用了普通模式进行购买
我刚刚测试了几个普通商品下单,没有发现'resultCode': 60074这个返回码
可否告知一下下单的是什么商品,是否是plus会员呢(因为京东的下单参数实在太多了)

from jd-assistant.

Supremes avatar Supremes commented on May 18, 2024

就是您放在main.py中默认添加的商品(1626336666),不是plus会员呢..

from jd-assistant.

tychxn avatar tychxn commented on May 18, 2024

我测试了一下,订单提交成功了诶。

昨晚我更新了需要支付密码情况下的代码,麻烦pull一下再试试哈。

另外,昨晚简单写了下使用教程在wiki中。

测试代码:

# -*- coding:utf-8 -*-
from jd_assistant import Assistant

if __name__ == '__main__':
    asst = Assistant()  # 初始化
    asst.login_by_QRcode()  # 扫码登陆
    asst.clear_cart()  # 清空购物车(可选)
    asst.add_item_to_cart(sku_id='1626336666')  # 根据商品id添加购物车(可选)
    asst.submit_order_by_time(buy_time='2019-02-16 16:16:59.500', retry=4, interval=5)  # 定时提交订单

测试输出:

[2019-02-16 16:16:09] 登录成功
[2019-02-16 16:16:09] 购物车清空成功
[2019-02-16 16:16:09] 1626336666已成功加入购物车
[2019-02-16 16:16:09] 正在等待到达设定时间:2019-02-16 16:16:59.500000
[2019-02-16 16:16:59] 时间达到,开始执行……
[2019-02-16 16:16:59] 第[1/4]次尝试提交订单……
[2019-02-16 16:16:59] 订单提交成功! 订单号:875xxxxxxx

from jd-assistant.

tychxn avatar tychxn commented on May 18, 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.