Comments (4)
根据返回信息 应该是使用了普通模式进行购买
我刚刚测试了几个普通商品下单,没有发现'resultCode': 60074
这个返回码
可否告知一下下单的是什么商品,是否是plus会员呢(因为京东的下单参数实在太多了)
from jd-assistant.
就是您放在main.py中默认添加的商品(1626336666),不是plus会员呢..
from jd-assistant.
我测试了一下,订单提交成功了诶。
昨晚我更新了需要支付密码情况下的代码,麻烦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.
如果最新的代码还是无法下单,可否在网页中将商品加入购物车🛒,然后截图看一下订单结算页面的选项情况。
下单失败一般是由默认勾选的选项导致的参数不同引起的。
谢谢~
from jd-assistant.
Related Issues (20)
- 订单提交失败, 错误码:0, 返回信息:您选择的收货地址不支持当前的配送方式,请重新选择配送方式!(下单商品可能为第三方商品,将切换为普通发票进行尝试) HOT 11
- 请问有货提交订单案例中的地区ID在哪里能查看?
- _get_seckill_init_info error HOT 1
- 预约抢购提示加入购物车失败
- 能否请教下关于请求数据的格式,有哪些字段这个是怎么知道的?应该怎么学习呢?
- getTakId is not defined HOT 1
- 京东国际的商品无法提交订单,商品ID10031061737546 HOT 3
- 抢购为什么不支持支付,想请教一下 HOT 2
- 怎么用,能不能出个视频手把手交一下
- 请教一下,大佬的接口都是通过什么抓取的呢 HOT 1
- 现在这个脚本还可以使用吗
- 奇怪,界面和内容文件设10点执行,却2点执行了 HOT 2
- 安装时出错
- 问下各位大佬为什么会出现这种情况,感激不尽!! HOT 1
- 还在维护嘛? HOT 1
- eid, fp, track_id, risk_control参数获取失败 HOT 2
- 报非法的十六进制 HOT 3
- 有没大神知道这个报错是啥原因
- 抢购茅台,可以用么?
- 库存的url无效了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jd-assistant.