沧海一粟

天下事有难易乎?为之,则难者亦易矣;不为,则易者亦难矣。

0%

电商-京东 黄金流程 PC

对于传统的电商,为了保障大促时系统稳定性,保证用户可以查看购买下单,有一个黄金流程,一般的黄金流程都包括 首页、搜索、分类、商详、购物车、订单(下单、订单查看)


(1) 首页

通过 浏览器 -> 开发者工具 -> 网络 或者 curl "https://www.jd.com/" 查看京东首页,发现其实首页只显示 导航栏、快速入口、类目、常用功能
图片是再次发请求

首页

(1.1) 京东秒杀专区

https://lapi.jd.com/pchome/pcIndexMiaoShaArea?source=pc_seckill&pin=12345678-123456&uuid=16035486886821200401381&isAdvance=0&callback=jsonpSeckill&_=1613864577982

一页返回了20条 返回的数据大小22KB、这个大小稍微有点偏大

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"canFreeRead": "false",
"discount": "3.90",
"adword": "",
"endRemainTime": 80220,
"jdPrice": "31.90",
"bubbleTips": "",
"startTimeMills": 1613858400000,
"message": "",
"resultSort": 11,
"startRemainTime": -6178,
"sourceValue": "50_1_67035843439_0_1##24690_0_0",
"rate": "8.8折",
"almostSoldoutViewUser": 0,
"miaoSha": "true",
"book": "false",
"activeId": "6190020",
"promotion": "false",
"promotionId": "104767788678",
"lowestPriceDaysInfo": "80天最低价",
"wareId": "67035843439",
"seckillProdType": "0",
"startTimeShow": "06:00",
"imageurl": "//m.360buyimg.com/seckillcms/s250x250_jfs/t1/166459/14/7309/123707/6030ad06Ec040f8a3/8ddb2e3c14c26577.jpg",
"hashKey": 67035843439,
"spuId": "14310874641",
"isNewGoods": 0,
"isHistoryProduct": false,
"miaoShaPrice": "28.00",
"moreFunId": "searchCatelogy",
"good": "",
"cid": "",
"canBuy": "true",
"wname": "黑麦全麦面包吐司粗粮0饱腹代餐脂肪热量零食早餐整箱焙乐 【黑麦面包500g送500g/箱】",
"cName": "",
"operateWord": "早餐面包",
"discountNew": "",
"promoType": 1,
"seckillNum": "4500"
}

(1.2) 每日特价-资源位

https://floor.jd.com/recommend-v20/daily_speci_data/get?source=pc-home&id=2&callback=jsonpSpecialOfferContent0&_=1613864578176

一页展示5条  可以看到返回的字段、大小相对比较简洁  返回的数据989B
为了方便查看,我只留1条

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
"msg": "",
"data": [
{
"skuId": 10021736970334,
"miaoShaPrice": "19.9",
"imageurl": "//m.360buyimg.com/seckillcms/s144x144_jfs/t1/156722/8/961/96822/5fdd7845E1eb7c845/8bfe6bf044ae6c8d.jpg!q70.jpg",
"lowestPriceDaysInfo": "157天历史最低价",
"wname": "原生态红富士苹果",
"jdPrice": "33.6",
"alreadySoldInfoPcPre": "热卖中"
}
],
"code": 0
}

(1.3) 推荐-资源位

https://floor.jd.com/recommend-v20/red_new/get?source=pc-home&pin=12345678-123456&callback=jsonpLightningBuy&_=1613864578020

(1.4) 推荐

https://floor.jd.com/user-v20/feed/get?page=1&pagesize=25&area=1_72_2799_0&source=pc-home&callback=jsonpMore2Goods&_=1613866109270

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"latency": 216,
"bucket": 0,
"encode": "utf-8",
"request_url": "//indivsoa.m.jd.local/mixer?appid=pc&functionId=mixer&client=pc&pin=&body={\"p\":610009,\"uuid\":\"16035486886821200401381\",\"sku\":\"\",\"skus\":\"\",\"c1\":\"\",\"c2\":\"\",\"c3\":\"\",\"sp\":\"\",\"fne\":\"\",\"ro\":\"\",\"fe\":\"\",\"lid\":\"1,72,2799,0\",\"ec\":\"utf-8\",\"lim\":25,\"__jda\":\"xxx.xxx.xxx.xxx.xxx.xxx\",\"hi\":\"page:1\",\"location_info\":\"1-12-1234-0\",\"iplocation\":\"123.123.123.123\"}&loginType=3",
"callNewMixerStrategy": "B",
"error_msg": "",
"request_time": 1613866109.644,
"data": [
{
"wsn": "-1",
"subsku": {},
"abt": "",
"pid": "600040675",
"noFilter": "0",
"commentAbStrategy": "A",
"spu": 42908321659,
"vid": 0,
"mp": "0.00",
"tips": [
{
"t": 116,
"v": "您的浏览足迹"
},
{
"t": 102,
"v": "浏览商品"
},
{
"t": 9999,
"v": "0"
}
],
"t": "【昌圣祥绿豆饼400g】绿豆饼红豆饼休闲零食糕点点心 【简装】红豆饼1包绿豆饼1包",
"bn": "昌聖祥",
"client_click_url": "",
"clk": "//knicks.jd.com/log/server?t=rec_common_clk&v=type=rec.610009$src=rec$action=1$reqsig=375d4c048c75ca31f5e9101b12a0c214942321ee$enb=1$sku=0$p=610009$pin=$uuid=dfHRXLhd2uPdAy%2BCwBUdEtPnHQiaB0kx$csku=42908321661$index=0$st=0$adcli=$expid=100$mexpid=$im=$rid=8718363267860211836$ver=1$sig=8322b349090751cab490457515d8058876284364",
"c3": 1590,
"miniCanAddCart": "0",
"impr": "1",
"rt": "0",
"renl": 99,
"srn": -1,
"jp": "19.80",
"pcp": "0.00",
"ssid": 33,
"w": 0.7767,
"itemType": 0,
"canUseCoupon": "0",
"op": "19.80",
"wt": "1.0",
"duration": 0,
"newSource": "-1",
"sid": "f52671b2-ea30-4ce0-9d48-79a7418ad353",
"img": "jfs/t1/29982/29/9873/119911/5c822a87E2136f4ba/e4d864044ad493fe.jpg",
"transImg": "0",
"lp_type": "0",
"isMbox": false,
"sku": 42908321661,
"have_similar": "0",
"broker_info": "eyJwIjoiNjEwMDA5IiwicG9pbnRfaWQiOiIiLCJzb3VyY2UiOiIwIiwidGFnIjoiMTAiLCJjc191c2VyIjoiMiIsInBhbGFudGlyX2V4cGlkcyI6IlJ8TUlYVEFHX1JSfCIsImV4cGlkIjoiMTAwIiwicmVxc2lnIjoiMzc1ZDRjMDQ4Yzc1Y2EzMWY1ZTkxMDFiMTJhMGMyMTQ5NDIzMjFlZSJ9",
"clk_url": "",
"target_url": "",
"source": "0",
"client_exposal_url": ""
}
],
"success": true,
"timestamp": 1613866109423,
"flow": "66",
"priceResCode": 1000,
"impr": "//knicks.jd.com/log/server?t=rec_common_exp&v=type=rec.610009$src=rec$action=0$reqsig=375d4c048c75ca31f5e9101b12a0c214942321ee$enb=1$csku=42908321661,3343744,5563435,1333448,27355361140,1160162,4420194,41330993488,11898431,10004584450,10102014255,1530841,269884,100002358949,4819911,25251975814,4420220,24939565523,4068815,37560759906,4815413,28916642304,1290129,19206110770,40106154386$st=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0$sku=0$p=610009$pin=$uuid=dfHRXLhd2uPdAy%2BCwBUdEtPnHQiaB0kx$expid=100$mexpid=$gm=page%5E1$rt=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0$rid=8718363267860211836$ver=1$sig=3239aa808362b93688411d1f1658254f1aa1db78"
}


(2) 搜索

(2.1) 搜索推荐

搜索推荐主要为了解决错别字,把用户往期望的方向引
引导用户用 热词,有缓存、搜索结果快

(2.1.1) 搜索词=p

https://dd-search.jd.com/?terminal=pc&newjson=1&ver=2&zip=1&key=p&pvid=a4f1e3669750421d8a4473d1db113a90&t=1613867002272&curr_url=www.jd.com%2F&callback=jQuery6958642
返回结果500B左右
请求耗时60ms

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[
{
"key": "苹果",
"qre": "935194"
},
{
"key": "苹果12",
"qre": "90923"
},
{
"key": "p40",
"qre": "872441"
},
{
"key": "苹果11",
"qre": "72235"
},
{
"key": "ps5",
"qre": "59848"
},
{
"key": "平板电脑",
"qre": "650917"
},
{
"key": "苹果手机",
"qre": "160044"
},
{
"key": "p40pro",
"qre": "871383"
},
{
"key": "皮带男",
"qre": "735751"
},
{
"key": "p40华为",
"qre": "90776"
},
{
"key": "跑步机",
"qre": "69378"
},
{
"key": "p30",
"qre": "872824"
},
{
"key": "啤酒",
"qre": "205588"
},
{
"version": "base"
}
]

(2.1.2) 搜索词=ping

https://dd-search.jd.com/?terminal=pc&newjson=1&ver=2&zip=1&key=ping&pvid=ed90302882f8410584a44b0f908998ff&t=1613867293678&curr_url=www.jd.com%2F&callback=jQuery6254769

返回结果500B左右
请求耗时60ms

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[
{
"key": "苹果12",
"qre": "90923"
},
{
"key": "苹果11",
"qre": "72235"
},
{
"key": "苹果",
"qre": "935194"
},
{
"key": "苹果手机",
"qre": "160044"
},
{
"key": "苹果x",
"qre": "46129"
},
{
"key": "苹果耳机",
"qre": "523892"
},
{
"key": "苹果平板",
"qre": "44345"
},
{
"key": "苹果8",
"qre": "56234"
},
{
"key": "苹果充电线",
"qre": "387363"
},
{
"key": "苹果手表",
"qre": "9384"
},
{
"key": "苹果xs",
"qre": "38895"
},
{
"key": "苹果醋",
"qre": "4248"
},
{
"key": "苹果快充",
"qre": "384773"
},
{
"version": "base"
}
]

(2.1.3) 搜索词=苹

https://dd-search.jd.com/?terminal=pc&newjson=1&ver=2&zip=1&key=%E8%8B%B9&pvid=ed90302882f8410584a44b0f908998ff&t=1613867297212&curr_url=www.jd.com%2F&callback=jQuery1259079

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[
{
"key": "苹果12",
"qre": "90923"
},
{
"key": "苹果",
"qre": "935194"
},
{
"key": "苹果11",
"qre": "72235"
},
{
"key": "平板",
"qre": "899211"
},
{
"key": "苹果手机",
"qre": "160044"
},
{
"key": "苹果耳机",
"qre": "523892"
},
{
"key": "苹果数据线",
"qre": "293882"
},
{
"key": "苹果x",
"qre": "46129"
},
{
"key": "平底锅",
"qre": "193582"
},
{
"key": "苹果手表",
"qre": "9384"
},
{
"key": "苹果平板",
"qre": "44345"
},
{
"key": "平衡车",
"qre": "212580"
},
{
"key": "苹果电脑",
"qre": "55392"
},
{
"version": "base"
}
]

(2.2) 搜索

https://search.jd.com/Search?keyword=%E8%8B%B9%E6%9E%9C&enc=utf-8&wq=%E8%8B%B9%E6%9E%9C&pvid=51e3947abe824f99a4b845034239f73a

请求结果 82KB
耗时1060ms
返回的结果是聚合结果,包括 品牌、分类、原产地、屏幕尺寸、机身颜色、高级选项


(3) 分类

全部商品分类 https://www.jd.com/allSort.aspx
全部商品分类

(3.1) 分类入口

从首页可以进入分类
从商详的左上角 点击全部分类也可以看到分类

(3.2) 分类结构

生鲜 一级分类 https://fresh.jd.com/
新鲜水果 二级分类 https://search.jd.com/Search?keyword=%E6%B0%B4%E6%9E%9C&enc=utf-8&wq=
苹果 三级分类 https://search.jd.com/search?keyword=%E8%8B%B9%E6%9E%9C&enc=utf-8&qrst=1&stop=1&vt=2&cid2=12221#J_searchWrap


(4) 商详

https://item.jd.com/60713932952.html
skuId比较长11位,用long存储
int类型 -2^31 ~ 2^31-1 最长10位 2147483647,如果是无符号的话11位 最大支持 4294967295

https://item.jd.com/652352.html
可以看到这个skuId是很短的只有6位




(5) 购物车

加购

加购一件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
curl 'https://cart.jd.com/tproduct?pid=3773507&rid=0.3696100407542984' \
-X 'POST' \
-H 'authority: cart.jd.com' \
-H 'content-length: 0' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'accept: application/json, text/javascript, */*; q=0.01' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36' \
-H 'x-requested-with: XMLHttpRequest' \
-H 'origin: https://cart.jd.com' \
-H 'sec-fetch-site: same-origin' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://cart.jd.com/addToCart.html?rcd=1&pid=3773507&pc=1&eb=1&rid=1619268872759&em=' \
-H 'accept-language: zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7,en-US;q=0.6' \
-H 'cookie: xxx' \
--compressed

pid是商品skuId

返回结果

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
{
"adMessage": null,
"addSkuLimitState": null,
"allSkuIds": null,
"areas": null,
"btg": 0,
"callback": null,
"cart": null,
"checkIsAll": 0,
"checkedCartState": 0,
"cm": null,
"customInfoId": null,
"did": null,
"directBuyAuthority": false,
"dist": null,
"errorMessage": null,
"f": 0,
"fsIds": null,
"gids": null,
"giftPoolType": null,
"gl": 0,
"gs": null,
"gsid": null,
"hasSkuInOutSkus": 0,
"ids": null,
"isLogin": 1,
"jd3csid": null,
"jdhsid": null,
"k": null,
"l": 0,
"lastAddedSku": {
"addPrice": "0.00",
"addPriceDifferences": 0,
"awardType": 0,
"bulk": 0,
"calWeight": true,
"calculateStock": false,
"cartMessageList": null,
"checkType": 0,
"checkboxDisabled": null,
"cid": 13567,
"cm": null,
"color": "耙耙柑特级大果5kg装",
"customInfoId": null,
"cz": false,
"dataType": 0,
"deliveryId": 0,
"discountPrice": "0.00",
"discountedPrice": "0.00",
"dist": null,
"factoryShip": false,
"fbp": false,
"fbpSam": false,
"fcs": false,
"firstCid": 0,
"flashPurchase": false,
"flashPurchaseCode": null,
"freePostal": 0,
"fresh": false,
"giftAddMoney": "0.00",
"giftBuy": false,
"giftNeedMoney": "0.00",
"giftSelectState": 0,
"giftSourceType": 0,
"handtailor": false,
"id": "3773507",
"imgUrl": "jfs/t1/138326/10/16598/173141/5fc83ab3E290c9af9/77c07c6cd7bd1cee.jpg",
"isCanUseDQ": 1,
"isCanUseJQ": 1,
"isInOutSkus": false,
"isOverseaPurchase": null,
"jdCellphone": false,
"jdComputer": false,
"jdDigital": false,
"jdHomeAppliance": false,
"jdMarket": false,
"jdStationery": false,
"jdbx": null,
"jingXuan": false,
"jingYuZN": false,
"jingZao": false,
"jzfp": false,
"locFlag": null,
"lsid": null,
"marketPrice": "0.00",
"minBuyNum": 0,
"name": "四川春见耙耙柑 粑粑柑 丑柑橘子 精选特级大果5kg礼盒装 单果约180-300g 新鲜水果",
"noStockType": 0,
"num": 0,
"numLimit": 0,
"ob": false,
"overlengthName": null,
"oversea": false,
"partitionInfo": null,
"pnCard": false,
"pnCardLinkType": null,
"pnCardNumber": null,
"pnCardPag": null,
"pnCardPbn": null,
"pnCardRpcDG": null,
"pnCardSpid": null,
"pnCardStatus": null,
"pnCardType": null,
"pnHyj": false,
"popInfo": null,
"price": "0.00",
"promotion": null,
"promotionPrice": "0.00",
"rePrice": "0.00",
"samGoods": false,
"samMemberZx": false,
"scareBuy": false,
"secondCid": 0,
"serviceTemplateId": null,
"sevenHover": null,
"sevenToReturn": null,
"shopId": 0,
"shortName": "四川春见耙耙柑 粑粑柑 丑柑橘子 精选特级...",
"size": "",
"sizeDesc": null,
"skuUuid": null,
"stock": 0,
"sumDiscountedPrice": "0.00",
"sumWeight": "0",
"toplife": false,
"type": 0,
"unusable": false,
"unusableType": null,
"venderId": null,
"virtualNoFreight": false,
"weight": 0,
"yuShouNoWay": null,
"ziying": true,
"zy": false,
"zyShopDB": false
},
"lcount": 0,
"lid": null,
"lsid": null,
"modifyProductPromoID": 0,
"modifyPromoID": 0,
"modifyResult": null,
"notifyKey": null,
"nums": null,
"oft": null,
"otherSkus": null,
"outBean": null,
"outSkus": null,
"packId": null,
"pag": null,
"passAdd": null,
"pbn": null,
"pcount": 0,
"pgid": null,
"pid": "3773507",
"pids": null,
"pin": "32060130-350614",
"platformInfos": null,
"pn": null,
"pncount": 0,
"pnid": null,
"pnums": null,
"productExtIconsMap": null,
"productYbInfos": null,
"promiseIconMap": null,
"ptype": 0,
"redirectUrl": null,
"sid": null,
"sidnums": null,
"sids": null,
"slsid": null,
"snums": null,
"subType": 0,
"success": true,
"targetId": null,
"tc": "e",
"type": 0,
"vids": null,
"vnums": null,
"wids": null,
"ybId": null,
"zids": null
}

加购多件

商品选中

全选

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
curl 'https://api.m.jd.com/api?functionId=pcCart_jc_cartCheckAll&appid=JDC_mall_cart&loginType=3&body=%7B%22serInfo%22:%7B%22area%22:%2222_1930_49324_0%22,%22user-key%22:%22xxx%22%7D%7D' \
-X 'POST' \
-H 'authority: api.m.jd.com' \
-H 'content-length: 0' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'accept: application/json, text/plain, */*' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36' \
-H 'origin: https://cart.jd.com' \
-H 'sec-fetch-site: same-site' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://cart.jd.com/' \
-H 'accept-language: zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7,en-US;q=0.6' \
-H 'cookie: xxx' \
--compressed

选中多件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
curl 'https://api.m.jd.com/api' \
-H 'authority: api.m.jd.com' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'accept: application/json, text/plain, */*' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'origin: https://cart.jd.com' \
-H 'sec-fetch-site: same-site' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://cart.jd.com/' \
-H 'accept-language: zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7,en-US;q=0.6' \
-H 'cookie: __jdu=; shshshfpa=; pinId=; pin=; unick=; _tp=; _pst=; shshshfpb=; abtest=; __jdv=; mt_xid=; cn=; areaId=; ipLoc-djd=; PCSYCityID=; user-key=; TrackID=; thor=; ceshi3.com=; shshshfp=; __jda=; __jdb=; __jdc=; shshshsID=; 3AB9D23F7A4B3C9B=; ' \
--data-raw 'functionId=pcCart_jc_cartCheckSingle&appid=JDC_mall_cart&body=%7B%22operations%22%3A%5B%7B%22carttype%22%3A%225%22%2C%22ThePacks%22%3A%5B%7B%22num%22%3A1%2C%22sType%22%3A11%2C%22Id%22%3A200081944537%2C%22TheSkus%22%3A%5B%7B%22num%22%3A1%2C%22Id%22%3A%2211966296%22%2C%22skuUuid%22%3A%22113319456898232947810357251%22%2C%22useUuid%22%3Afalse%7D%5D%7D%5D%7D%5D%2C%22serInfo%22%3A%7B%22area%22%3A%2222_1930_49324_0%22%2C%22user-key%22%3A%22xxx%22%7D%7D' \
--compressed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"operations": [
{
"carttype": "5",
"ThePacks": [
{
"num": 1,
"sType": 11,
"Id": 200081944537,
"TheSkus": [
{
"num": 1,
"Id": "11966296",
"skuUuid": "113319456898232947810357251",
"useUuid": false
}
]
}
]
}
],
"serInfo": {
"area": "22_1930_49324_0",
"user-key": "xxx"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"operations": [
{
"ThePacks": [],
"TheSkus": [
{
"Id": "10026398212355",
"num": 1,
"skuUuid": "116624189909634859026489344",
"useUuid": false
},
{
"Id": "10023982874451",
"num": 1,
"skuUuid": "1017291148909634822865551360",
"useUuid": false
},
{
"Id": "10023902508289",
"num": 1,
"skuUuid": "101723195909634804763471872",
"useUuid": false
},
{
"Id": "10023902508288",
"num": 1,
"skuUuid": "1018039220909634786699603968",
"useUuid": false
},
{
"Id": "10023908434237",
"num": 1,
"skuUuid": "1166100181909634762773331968",
"useUuid": false
}
],
"carttype": "5"
}
],
"serInfo": {
"area": "22_1930_49324_0",
"user-key": "xxx"
}
}

购物车-换购

1
https://api.m.jd.com/api?functionId=pcCart_jc_cartAdd&appid=JDC_mall_cart&loginType=3&body={"serInfo":{"area":"22_1930_49324_0"},"operations":[{"carttype":"2","ThePacks":[{"num":1,"sType":16,"Id":200072119660,"theGifts":[{"Id":"100017384398","num":1}]}]}]}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
curl 'https://api.m.jd.com/api?functionId=pcCart_jc_cartAdd&appid=JDC_mall_cart&loginType=3&body=%7B%22serInfo%22:%7B%22area%22:%2222_1930_49324_0%22%7D,%22operations%22:%5B%7B%22carttype%22:%222%22,%22ThePacks%22:%5B%7B%22num%22:1,%22sType%22:16,%22Id%22:200072119660,%22theGifts%22:%5B%7B%22Id%22:%22100017384398%22,%22num%22:1%7D%5D%7D%5D%7D%5D%7D' \
-X 'POST' \
-H 'authority: api.m.jd.com' \
-H 'content-length: 0' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'accept: application/json, text/plain, */*' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36' \
-H 'origin: https://cart.jd.com' \
-H 'sec-fetch-site: same-site' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://cart.jd.com/' \
-H 'accept-language: zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7,en-US;q=0.6' \
-H 'cookie: xxx' \
--compressed

返回结果

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"success": true,
"code": 0,
"message": null,
"resultData": {
"errInfo": {
"errCode": 0,
"errSrc": 0,
"errDesc": null
},
"cartInfo": {
"Num": 511,
"cartNum": 69,
"checkedWareNum": 5,
"limitCartNum": 50,
"limitWareNum": 1000,
"limitBookNum": 1000,
"limitNotBookNum": 200,
"HasDaJiaDian": null,
"RePrice": 282.77,
"Price": 4894.9,
"IsEmpty": false,
"PriceShow": "¥4,612.13",
"Discount": null,
"Skus": null,
"Suits": null,
"Gifts": null,
"tip_1": "",
"tip_2": "",
"replaceSkus": null,
"freeFreight": null,
"cutPriceSkuNum": 31,
"baitiaoSkuNum": 3,
"baitiaoNoticeOn": 1,
"ZYWeight": null,
"ZYPrice": null,
"configVersion": "195",
"abCards": {
"1": "B",
"15": "B",
"23": "B",
"106": "A"
},
"hasPacksOrMZSku": false,
"selectedPacksOrMZSku": false,
"promotionSwitch": 0,
"promotionSavePrice": 0,
"promotionRelation": null,
"cartClearGuide": 0,
"cartAddClearGuide": 0,
"cartClearShow": true,
"plusCartShow": null,
"cartNumGroup": {
"3": 5
},
"orderNumLimit": 110,
"unusableSkus": null,
"abConfigs": null,
"promotionInfo": null,
"plusInfo": null,
"promotionTotalInfo": null,
"notice": {
"value": "购物车中有31件商品已降价,快去看看",
"specialId": 0
},
"hitZjh": null,
"jdShopIcon": null,
"popShopIcon": null,
"globalSkuIcon": null,
"jdGlobalShopIcon": null,
"vendors": [[
{
"vendorId": 10644951,
"vendorType": 0,
"shopId": 10416750,
"shopName": "晚峰书屋官方旗舰店",
"hasCoupon": 1,
"vendorPrice": 1980,
"freeFreight": null,
"specialId": 0,
"sorted": [],
"fareMsg": null,
"shopMsg": null,
"coudanPageMsg": null,
"fareType": null,
"weight": null,
"priceNeed": null,
"weightNeed": null,
"linkUrl": null,
"vendorFare": {
"notFreshPrice": null,
"freshPrice": null,
"fareMap": null
},
"fareMap": null,
"fareRule": null,
"vendorLabels": {
"vendorHead": [
{
"u": "shopcart_POP_900",
"t": null,
"c": null,
"d": "shopcart_POP_dark",
"dd": "shopcart_POP_dark",
"s": null,
"vt": null,
"st": null
}
]
},
"vendorHeadSpecialId": 4,
"checkType": 1,
"isNoCheck": 0,
"storeId": null,
"inCoverage": 0,
"overWeight": null,
"belowMoney": null,
"storeType": null,
"storeName": null,
"djStatus": null,
"venderFlag": null
}
]],
"specialId": 0,
"actTag": null,
"checkType": 0,
"isNoCheck": 0,
"preferentialSummary": {
"totalPrice": "¥4,894.90",
"promotionPrice": "¥282.77",
"totalReprice": "¥282.77",
"couponStatus": "0"
},
"status": 1,
"preferentialDetail": [
{
"itemType": "1",
"itemName": "商品总额",
"price": "¥4,894.90",
"subItemName": null,
"subPrice": null
},
{
"itemType": "1",
"itemName": "立减",
"price": "-¥282.77",
"subItemName": null,
"subPrice": null
},
{
"itemType": "2",
"itemName": "共优惠",
"price": "-¥282.77",
"subItemName": null,
"subPrice": null
}
],
"checkedCartState": 1,
"pin": null,
"canGetCouponList": [],
"isEmpty": false,
"empty": false
},
"pin": "32060130-350614",
"newUserState": 1,
"uplusState": 5,
"userInfo": null
}
}




(6) 订单

结算页

从购物车跳转到结算页

  1. 收货人信息
  2. 实名信息
  3. 支付方式
  4. 送货清单
  5. 发票信息
  6. 使用优惠/礼品卡/抵用
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
curl 'https://trade.jd.com/shopping/order/getOrderInfo.action' \
-H 'authority: trade.jd.com' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'upgrade-insecure-requests: 1' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36' \
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
-H 'sec-fetch-site: same-site' \
-H 'sec-fetch-mode: navigate' \
-H 'sec-fetch-user: ?1' \
-H 'sec-fetch-dest: document' \
-H 'referer: https://cart.jd.com/' \
-H 'accept-language: zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7,en-US;q=0.6' \
-H 'cookie: __jdu= ;shshshfpa= ;pinId= ;pin= ;unick= ;_tp= ;_pst= ;shshshfpb= ;__jdv= ;mt_xid= ;cn= ;areaId= ;PCSYCityID= ;user-key= ;TrackID= ;ceshi3.com= ;shshshfp= ;__jda= ;__jdc= ;_contrast= ;_contrast_status= ;ipLoc-djd= ;ipLocation= ;__jdb= ;shshshsID= ;3AB9D23F7A4B3C9B= ;JSESSIONID= ;thor= ' \
--compressed

订单校验-前端 https://trade.jd.com/shopping/misc/js/order.common.js?r=20201229
https://trade.jd.com/shopping/misc/js/module/payAndShipment.js?r=2020122903091

提交订单

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
curl 'https://trade.jd.com/shopping/order/submitOrder.action?&presaleStockSign=1' \
-H 'authority: trade.jd.com' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'accept: application/json, text/javascript, */*; q=0.01' \
-H 'x-requested-with: XMLHttpRequest' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'origin: https://trade.jd.com' \
-H 'sec-fetch-site: same-origin' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://trade.jd.com/shopping/order/getOrderInfo.action' \
-H 'accept-language: zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7,en-US;q=0.6' \
-H 'cookie: __jdu=16035486886821200401381; shshshfpa=bf14a290-938d-b388-ace4-6d23955dd250-1603548691; pinId=X_uq58Hj4QHqBlohBRfJ1w; pin=32060130-350614; unick=WKQ6688; _tp=8WTsybs00aFnPAHeXheCOQ%3D%3D; _pst=32060130-350614; shshshfpb=trJc3sxy6u5wJMhF4OqXXpw%3D%3D; __jdv=76161171|direct|-|none|-|1618016115059; mt_xid=V2_52007VwMVU19cV1MYQBBbDGQDEVNcXVNaHUAZbARiBhtbVQtXRkhNGVgZYlNBBUELUVMXVR5YBzMDQlsKWFdfHXkaXQZnHxNXQVhTSx5AElgNbAIWYl9oUWocSB9UAGIzEFpfWA%3D%3D; cn=511; areaId=22; PCSYCityID=CN_510000_510100_510116; user-key=cb051e08-5334-4078-948a-1e06c1b2f074; TrackID=11lLhhEXH1Uo0KpRfl3Pu-tDt5T6RPYxyg-zvztCLLcfeQ0bjjvQEBxmmRK3tQGjmZo7X151tPvCShDe4POl5iSj8yYq3WLs7_cST98kanzaSD9KeGBpRV2C22jE5d9Dd; ceshi3.com=201; _contrast=; ipLoc-djd=22-1930-50945-57033.2821411614; ipLocation=%u56db%u5ddd; thor=53D543F142545D43F57705A7BAF63BAF5FF77944F3359C34C6A2B04A334FBD7DCC0F83C8386C54C30E0344580A6E660CE6D6A5DD165A45903CB9091D80D4CD6E3A53EA5D5FD2A9D3922DA90FC0626D3A2EA4C349FEA3DA4B8A2488E19F95EF5B570C79F421F511AC226D416AF53F02EBEBE416E6A6931F059189915A04EBFC633494DFAA036BBC474682A9538A85A35B73265379C0BE7E5005FAF53847B82016; __jda=122270672.16035486886821200401381.1603548689.1618016115.1619265954.49; __jdc=122270672; shshshfp=cc2e1a53f7ef5a129392630b3b2040ca; shshshsID=4c10df0ba2c2c8d424f0cebc53436116_16_1619271145880; __jdb=122270672.30.16035486886821200401381|49.1619265954; JSESSIONID=A3048AA8BC031815943A845C04F91E34.s1; 3AB9D23F7A4B3C9B=XCGA3JM7F7UFF2RROUAIJA6DBJCR7JR7KBEF53UIDJYQML3EUBPTK52VJGTPFUKT355YSNMZ7BDVZ2PYV7BF4QNBXI' \
--data-raw 'overseaPurchaseCookies=&vendorRemarks=[{"venderId":"720328","remark":""},{"venderId":"51585","remark":""}]&submitOrderParam.sopNotPutInvoice=false&submitOrderParam.trackID=TestTrackId&presaleStockSign=1&submitOrderParam.ignorePriceChange=0&submitOrderParam.btSupport=0&submitOrderParam.eid=XCGA3JM7F7UFF2RROUAIJA6DBJCR7JR7KBEF53UIDJYQML3EUBPTK52VJGTPFUKT355YSNMZ7BDVZ2PYV7BF4QNBXI&submitOrderParam.fp=1b996940087f5b4390ef2e652ef52331&submitOrderParam.isBestCoupon=1&submitOrderParam.skuDetailInfo=[{"firstCategory":null,"secondCategory":null,"thirdCategory":"3471","totalPrice":null,"secondCategoryTotalPrice":null,"thirdCategoryTotalPrice":null,"skuId":"12508425","num":1,"price":1990,"skuName":"反本能2:如何对抗人性弱点","discount":0},{"firstCategory":null,"secondCategory":null,"thirdCategory":"13567","totalPrice":null,"secondCategoryTotalPrice":null,"thirdCategoryTotalPrice":null,"skuId":"3773507","num":5,"price":15900,"skuName":"四川春见耙耙柑 粑粑柑 丑柑橘子 精选特级大果5kg礼盒装 单果约180-300g 新鲜水果","discount":0},{"firstCategory":null,"secondCategory":null,"thirdCategory":"13558","totalPrice":null,"secondCategoryTotalPrice":null,"thirdCategoryTotalPrice":null,"skuId":"25567537480","num":1,"price":5580,"skuName":"第二件减5元优仙果 海南贵妃芒果中大果4斤(单果80g起)精选新鲜水果","discount":0},{"firstCategory":null,"secondCategory":null,"thirdCategory":"1593","totalPrice":null,"secondCategoryTotalPrice":null,"thirdCategoryTotalPrice":null,"skuId":"46798090085","num":2,"price":5500,"skuName":"【山西馆】维之王山楂蜜饯388g*2袋山西特产休闲零食山楂凉果","discount":0}]&submitOrderParam.amount=510.00&submitOrderParam.needCheck=1' \
--compressed


curl 'https://trade.jd.com/shopping/order/submitOrder.action?&presaleStockSign=1' \
-H 'authority: trade.jd.com' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'accept: application/json, text/javascript, */*; q=0.01' \
-H 'x-requested-with: XMLHttpRequest' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'origin: https://trade.jd.com' \
-H 'sec-fetch-site: same-origin' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://trade.jd.com/shopping/order/getOrderInfo.action' \
-H 'accept-language: zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7,en-US;q=0.6' \
-H 'cookie: __jdu=16035486886821200401381; shshshfpa=bf14a290-938d-b388-ace4-6d23955dd250-1603548691; pinId=X_uq58Hj4QHqBlohBRfJ1w; pin=32060130-350614; unick=WKQ6688; _tp=8WTsybs00aFnPAHeXheCOQ%3D%3D; _pst=32060130-350614; shshshfpb=trJc3sxy6u5wJMhF4OqXXpw%3D%3D; __jdv=76161171|direct|-|none|-|1618016115059; mt_xid=V2_52007VwMVU19cV1MYQBBbDGQDEVNcXVNaHUAZbARiBhtbVQtXRkhNGVgZYlNBBUELUVMXVR5YBzMDQlsKWFdfHXkaXQZnHxNXQVhTSx5AElgNbAIWYl9oUWocSB9UAGIzEFpfWA%3D%3D; areaId=22; PCSYCityID=CN_510000_510100_510116; user-key=cb051e08-5334-4078-948a-1e06c1b2f074; TrackID=11lLhhEXH1Uo0KpRfl3Pu-tDt5T6RPYxyg-zvztCLLcfeQ0bjjvQEBxmmRK3tQGjmZo7X151tPvCShDe4POl5iSj8yYq3WLs7_cST98kanzaSD9KeGBpRV2C22jE5d9Dd; ceshi3.com=201; _contrast=; ipLocation=%u56db%u5ddd; shshshfp=cc2e1a53f7ef5a129392630b3b2040ca; cn=496; answer-code=""; _distM=170094630219; __jda=122270672.16035486886821200401381.1603548689.1618016115.1619265954.49; __jdc=122270672; thor=53D543F142545D43F57705A7BAF63BAF5FF77944F3359C34C6A2B04A334FBD7DCC0F83C8386C54C30E0344580A6E660CA6868AA01B9876F0656D42D0962CFD6B3DFD32D6E3AB27E5E8317ACF814E7C728676E11833F842732113C9581297B4C15185C2B186641F3F83334546781F436394314DFDD749EC520DE4AB8A765061DA48AAADE7D905458495390CFB1330DADA236538BD4518ABA765A0A40E64274101; shshshsID=4c10df0ba2c2c8d424f0cebc53436116_17_1619271517947; ipLoc-djd=22-1930-50945-57033.2821411614; __jdb=122270672.36.16035486886821200401381|49.1619265954; JSESSIONID=9B01AA3CF690032AC34700D3A4A3286F.s1; 3AB9D23F7A4B3C9B=XCGA3JM7F7UFF2RROUAIJA6DBJCR7JR7KBEF53UIDJYQML3EUBPTK52VJGTPFUKT355YSNMZ7BDVZ2PYV7BF4QNBXI' \
--data-raw 'overseaPurchaseCookies=&vendorRemarks=[{"venderId":"720328","remark":""},{"venderId":"51585","remark":""}]&submitOrderParam.sopNotPutInvoice=false&submitOrderParam.trackID=TestTrackId&presaleStockSign=1&submitOrderParam.ignorePriceChange=0&submitOrderParam.btSupport=0&submitOrderParam.eid=XCGA3JM7F7UFF2RROUAIJA6DBJCR7JR7KBEF53UIDJYQML3EUBPTK52VJGTPFUKT355YSNMZ7BDVZ2PYV7BF4QNBXI&submitOrderParam.fp=1b996940087f5b4390ef2e652ef52331&submitOrderParam.isBestCoupon=1&submitOrderParam.skuDetailInfo=[{"secondCategory":null,"thirdCategory":"3471","totalPrice":null,"secondCategoryTotalPrice":null,"firstCategory":null,"thirdCategoryTotalPrice":null,"skuId":"12508425","num":1,"price":1990,"skuName":"反本能2:如何对抗人性弱点","discount":0},{"secondCategory":null,"thirdCategory":"13567","totalPrice":null,"secondCategoryTotalPrice":null,"firstCategory":null,"thirdCategoryTotalPrice":null,"skuId":"3773507","num":1,"price":15900,"skuName":"四川春见耙耙柑 粑粑柑 丑柑橘子 精选特级大果5kg礼盒装 单果约180-300g 新鲜水果","discount":0},{"secondCategory":null,"thirdCategory":"13558","totalPrice":null,"secondCategoryTotalPrice":null,"firstCategory":null,"thirdCategoryTotalPrice":null,"skuId":"25567537480","num":1,"price":5580,"skuName":"第二件减5元优仙果 海南贵妃芒果中大果4斤(单果80g起)精选新鲜水果","discount":0},{"secondCategory":null,"thirdCategory":"1593","totalPrice":null,"secondCategoryTotalPrice":null,"firstCategory":null,"thirdCategoryTotalPrice":null,"skuId":"46798090085","num":1,"price":5500,"skuName":"【山西馆】维之王山楂蜜饯388g*2袋山西特产休闲零食山楂凉果","discount":0}]&submitOrderParam.amount=157.50&submitOrderParam.needCheck=1' \
--compressed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
curl 'https://success.jd.com/success/success.action?orderId=162514856405&areaId=22-1930-50945-57035.3894930080&rid=0.26536111152218456' \
-H 'authority: success.jd.com' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'upgrade-insecure-requests: 1' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36' \
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
-H 'sec-fetch-site: same-site' \
-H 'sec-fetch-mode: navigate' \
-H 'sec-fetch-user: ?1' \
-H 'sec-fetch-dest: document' \
-H 'referer: https://trade.jd.com/' \
-H 'accept-language: zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7,en-US;q=0.6' \
-H 'cookie: __jdu=16035486886821200401381; shshshfpa=bf14a290-938d-b388-ace4-6d23955dd250-1603548691; pinId=X_uq58Hj4QHqBlohBRfJ1w; pin=32060130-350614; unick=WKQ6688; _tp=8WTsybs00aFnPAHeXheCOQ%3D%3D; _pst=32060130-350614; shshshfpb=trJc3sxy6u5wJMhF4OqXXpw%3D%3D; __jdv=76161171|direct|-|none|-|1618016115059; mt_xid=V2_52007VwMVU19cV1MYQBBbDGQDEVNcXVNaHUAZbARiBhtbVQtXRkhNGVgZYlNBBUELUVMXVR5YBzMDQlsKWFdfHXkaXQZnHxNXQVhTSx5AElgNbAIWYl9oUWocSB9UAGIzEFpfWA%3D%3D; areaId=22; PCSYCityID=CN_510000_510100_510116; user-key=cb051e08-5334-4078-948a-1e06c1b2f074; TrackID=11lLhhEXH1Uo0KpRfl3Pu-tDt5T6RPYxyg-zvztCLLcfeQ0bjjvQEBxmmRK3tQGjmZo7X151tPvCShDe4POl5iSj8yYq3WLs7_cST98kanzaSD9KeGBpRV2C22jE5d9Dd; ceshi3.com=201; _contrast=; ipLocation=%u56db%u5ddd; shshshfp=cc2e1a53f7ef5a129392630b3b2040ca; _distM=170094630219; __jda=122270672.16035486886821200401381.1603548689.1618016115.1619265954.49; __jdc=122270672; thor=53D543F142545D43F57705A7BAF63BAF5FF77944F3359C34C6A2B04A334FBD7DCC0F83C8386C54C30E0344580A6E660CA6868AA01B9876F0656D42D0962CFD6B3DFD32D6E3AB27E5E8317ACF814E7C728676E11833F842732113C9581297B4C15185C2B186641F3F83334546781F436394314DFDD749EC520DE4AB8A765061DA48AAADE7D905458495390CFB1330DADA236538BD4518ABA765A0A40E64274101; shshshsID=4c10df0ba2c2c8d424f0cebc53436116_17_1619271517947; ipLoc-djd=22-1930-50945-57033.2821411614; __jdb=122270672.36.16035486886821200401381|49.1619265954; 3AB9D23F7A4B3C9B=XCGA3JM7F7UFF2RROUAIJA6DBJCR7JR7KBEF53UIDJYQML3EUBPTK52VJGTPFUKT355YSNMZ7BDVZ2PYV7BF4QNBXI; cn=491' \
--compressed

收银

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
curl 'https://pcashier.jd.com/cashier/index.action?orderId=162514856405&reqInfo=eyJwYXlFeHQiOm51bGwsIm9yZGVyQW1vdW50IjoiMTU3LjUwMDAiLCJvcmRlckRhdGUiOm51bGwsImNvdW50ZG93blRpbWUiOm51bGwsImNvbXBhbnlJZCI6IjQiLCJ0b1R5cGUiOiIxMCIsImNhdGVnb3J5IjoiMSIsInZlcnNpb24iOiIzLjAiLCJvcmRlcklkIjoiMTYyNTE0ODU2NDA1Iiwib3JkZXJUeXBlIjoiMCIsInBheUFtb3VudCI6IjE1Ny41MDAwIn0=&sign=24708f118f4764bfed670d088156ef29' \
-H 'authority: pcashier.jd.com' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'upgrade-insecure-requests: 1' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36' \
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
-H 'sec-fetch-site: same-site' \
-H 'sec-fetch-mode: navigate' \
-H 'sec-fetch-user: ?1' \
-H 'sec-fetch-dest: document' \
-H 'referer: https://trade.jd.com/' \
-H 'accept-language: zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7,en-US;q=0.6' \
-H 'cookie: __jdu=16035486886821200401381; shshshfpa=bf14a290-938d-b388-ace4-6d23955dd250-1603548691; pinId=X_uq58Hj4QHqBlohBRfJ1w; pin=32060130-350614; unick=WKQ6688; _tp=8WTsybs00aFnPAHeXheCOQ%3D%3D; _pst=32060130-350614; shshshfpb=trJc3sxy6u5wJMhF4OqXXpw%3D%3D; __jdv=76161171|direct|-|none|-|1618016115059; mt_xid=V2_52007VwMVU19cV1MYQBBbDGQDEVNcXVNaHUAZbARiBhtbVQtXRkhNGVgZYlNBBUELUVMXVR5YBzMDQlsKWFdfHXkaXQZnHxNXQVhTSx5AElgNbAIWYl9oUWocSB9UAGIzEFpfWA%3D%3D; areaId=22; PCSYCityID=CN_510000_510100_510116; user-key=cb051e08-5334-4078-948a-1e06c1b2f074; TrackID=11lLhhEXH1Uo0KpRfl3Pu-tDt5T6RPYxyg-zvztCLLcfeQ0bjjvQEBxmmRK3tQGjmZo7X151tPvCShDe4POl5iSj8yYq3WLs7_cST98kanzaSD9KeGBpRV2C22jE5d9Dd; ceshi3.com=201; _contrast=; ipLocation=%u56db%u5ddd; shshshfp=cc2e1a53f7ef5a129392630b3b2040ca; _distM=170094630219; __jda=122270672.16035486886821200401381.1603548689.1618016115.1619265954.49; __jdc=122270672; thor=53D543F142545D43F57705A7BAF63BAF5FF77944F3359C34C6A2B04A334FBD7DCC0F83C8386C54C30E0344580A6E660CA6868AA01B9876F0656D42D0962CFD6B3DFD32D6E3AB27E5E8317ACF814E7C728676E11833F842732113C9581297B4C15185C2B186641F3F83334546781F436394314DFDD749EC520DE4AB8A765061DA48AAADE7D905458495390CFB1330DADA236538BD4518ABA765A0A40E64274101; shshshsID=4c10df0ba2c2c8d424f0cebc53436116_17_1619271517947; __jdb=122270672.36.16035486886821200401381|49.1619265954; 3AB9D23F7A4B3C9B=XCGA3JM7F7UFF2RROUAIJA6DBJCR7JR7KBEF53UIDJYQML3EUBPTK52VJGTPFUKT355YSNMZ7BDVZ2PYV7BF4QNBXI; cn=491; ipLoc-djd=22-1930-50945-57035.3894930080' \
--compressed

获取支付信息

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
curl 'https://pay.jd.com/api-d-cashier/jdpay/getPayChannel?cashierId=1&appId=pcashier' \
-H 'authority: pay.jd.com' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'sgm-context: 931049311124120200;931049311124120200' \
-H 'accept: application/json, text/plain, */*' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36' \
-H 'content-type: application/json' \
-H 'origin: https://pay.jd.com' \
-H 'sec-fetch-site: same-origin' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://pay.jd.com/d/cashier/?orderId=162514856405&reqInfo=eyJjYXRlZ29yeSI6IjEiLCJvcmRlckFtb3VudCI6IjE1Ny41MCIsIm9yZGVyRXJwUGxhdCI6IkpEIiwidmVyc2lvbiI6IjMuMCIsIm9yZGVySWQiOiIxNjI1MTQ4NTY0MDUiLCJwYXlBbW91bnQiOiIxNTcuNTAiLCJjb21wYW55SWQiOiI0Iiwib3JkZXJUeXBlIjoiMCIsInRvVHlwZSI6IjEwIn0=&sign=aa8141ad02646e0195cccbd8c0510309&appId=pcashier&cashierId=1' \
-H 'accept-language: zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7,en-US;q=0.6' \
-H 'cookie: __jdu=16035486886821200401381; shshshfpa=bf14a290-938d-b388-ace4-6d23955dd250-1603548691; pinId=X_uq58Hj4QHqBlohBRfJ1w; pin=32060130-350614; unick=WKQ6688; _tp=8WTsybs00aFnPAHeXheCOQ%3D%3D; _pst=32060130-350614; shshshfpb=trJc3sxy6u5wJMhF4OqXXpw%3D%3D; qid_uid=5fca01f7-5037-44ff-946d-56e5089ada55; qid_fs=1608622420894; __jdv=76161171|direct|-|none|-|1618016115059; mt_xid=V2_52007VwMVU19cV1MYQBBbDGQDEVNcXVNaHUAZbARiBhtbVQtXRkhNGVgZYlNBBUELUVMXVR5YBzMDQlsKWFdfHXkaXQZnHxNXQVhTSx5AElgNbAIWYl9oUWocSB9UAGIzEFpfWA%3D%3D; areaId=22; PCSYCityID=CN_510000_510100_510116; user-key=cb051e08-5334-4078-948a-1e06c1b2f074; TrackID=11lLhhEXH1Uo0KpRfl3Pu-tDt5T6RPYxyg-zvztCLLcfeQ0bjjvQEBxmmRK3tQGjmZo7X151tPvCShDe4POl5iSj8yYq3WLs7_cST98kanzaSD9KeGBpRV2C22jE5d9Dd; ceshi3.com=201; _contrast=; ipLocation=%u56db%u5ddd; shshshfp=cc2e1a53f7ef5a129392630b3b2040ca; qid_ls=1613896526207; qid_ts=1619271242330; qid_sq=3; qid_sid=5fca01f7-5037-44ff-946d-56e5089ada55-3; qid_ad=pay.jd.com%7C-%7Cjd%7C-%7C0; _distM=170094630219; __jda=122270672.16035486886821200401381.1603548689.1618016115.1619265954.49; __jdc=122270672; thor=53D543F142545D43F57705A7BAF63BAF5FF77944F3359C34C6A2B04A334FBD7DCC0F83C8386C54C30E0344580A6E660CA6868AA01B9876F0656D42D0962CFD6B3DFD32D6E3AB27E5E8317ACF814E7C728676E11833F842732113C9581297B4C15185C2B186641F3F83334546781F436394314DFDD749EC520DE4AB8A765061DA48AAADE7D905458495390CFB1330DADA236538BD4518ABA765A0A40E64274101; shshshsID=4c10df0ba2c2c8d424f0cebc53436116_17_1619271517947; __jdb=122270672.36.16035486886821200401381|49.1619265954; 3AB9D23F7A4B3C9B=XCGA3JM7F7UFF2RROUAIJA6DBJCR7JR7KBEF53UIDJYQML3EUBPTK52VJGTPFUKT355YSNMZ7BDVZ2PYV7BF4QNBXI; cn=491; ipLoc-djd=22-1930-50945-57035.3894930080' \
--data-binary '{"orderId":"162514856405","reqInfo":"eyJjYXRlZ29yeSI6IjEiLCJvcmRlckFtb3VudCI6IjE1Ny41MCIsIm9yZGVyRXJwUGxhdCI6IkpEIiwidmVyc2lvbiI6IjMuMCIsIm9yZGVySWQiOiIxNjI1MTQ4NTY0MDUiLCJwYXlBbW91bnQiOiIxNTcuNTAiLCJjb21wYW55SWQiOiI0Iiwib3JkZXJUeXBlIjoiMCIsInRvVHlwZSI6IjEwIn0=","sign":"aa8141ad02646e0195cccbd8c0510309","riskReqVo":{"deviceId":"XCGA3JM7F7UFF2RROUAIJA6DBJCR7JR7KBEF53UIDJYQML3EUBPTK52VJGTPFUKT355YSNMZ7BDVZ2PYV7BF4QNBXI","fingerprint":"1b996940087f5b4390ef2e652ef52331"}}' \
--compressed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
curl 'https://pay.jd.com/api-d-cashier/log/info?cashierId=1&appId=pcashier&orderId=162514856405&errorInfo=cashierId%3D1,%E8%8E%B7%E5%8F%96%E5%88%B0%E9%A3%8E%E6%8E%A7%E4%BF%A1%E6%81%AF%E7%9A%84%E6%97%B6%E9%97%B4%3E%3E%3E50' \
-H 'authority: pay.jd.com' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'sgm-context: 121385111064294100;121385111064294100' \
-H 'accept: application/json, text/plain, */*' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36' \
-H 'sec-fetch-site: same-origin' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://pay.jd.com/d/cashier/?orderId=162514856405&reqInfo=eyJjYXRlZ29yeSI6IjEiLCJvcmRlckFtb3VudCI6IjE1Ny41MCIsIm9yZGVyRXJwUGxhdCI6IkpEIiwidmVyc2lvbiI6IjMuMCIsIm9yZGVySWQiOiIxNjI1MTQ4NTY0MDUiLCJwYXlBbW91bnQiOiIxNTcuNTAiLCJjb21wYW55SWQiOiI0Iiwib3JkZXJUeXBlIjoiMCIsInRvVHlwZSI6IjEwIn0=&sign=aa8141ad02646e0195cccbd8c0510309&appId=pcashier&cashierId=1' \
-H 'accept-language: zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7,en-US;q=0.6' \
-H 'cookie: __jdu=16035486886821200401381; shshshfpa=bf14a290-938d-b388-ace4-6d23955dd250-1603548691; pinId=X_uq58Hj4QHqBlohBRfJ1w; pin=32060130-350614; unick=WKQ6688; _tp=8WTsybs00aFnPAHeXheCOQ%3D%3D; _pst=32060130-350614; shshshfpb=trJc3sxy6u5wJMhF4OqXXpw%3D%3D; qid_uid=5fca01f7-5037-44ff-946d-56e5089ada55; qid_fs=1608622420894; __jdv=76161171|direct|-|none|-|1618016115059; mt_xid=V2_52007VwMVU19cV1MYQBBbDGQDEVNcXVNaHUAZbARiBhtbVQtXRkhNGVgZYlNBBUELUVMXVR5YBzMDQlsKWFdfHXkaXQZnHxNXQVhTSx5AElgNbAIWYl9oUWocSB9UAGIzEFpfWA%3D%3D; areaId=22; PCSYCityID=CN_510000_510100_510116; user-key=cb051e08-5334-4078-948a-1e06c1b2f074; TrackID=11lLhhEXH1Uo0KpRfl3Pu-tDt5T6RPYxyg-zvztCLLcfeQ0bjjvQEBxmmRK3tQGjmZo7X151tPvCShDe4POl5iSj8yYq3WLs7_cST98kanzaSD9KeGBpRV2C22jE5d9Dd; ceshi3.com=201; _contrast=; ipLocation=%u56db%u5ddd; shshshfp=cc2e1a53f7ef5a129392630b3b2040ca; qid_ls=1613896526207; qid_ts=1619271242330; qid_sq=3; qid_sid=5fca01f7-5037-44ff-946d-56e5089ada55-3; qid_ad=pay.jd.com%7C-%7Cjd%7C-%7C0; _distM=170094630219; __jda=122270672.16035486886821200401381.1603548689.1618016115.1619265954.49; __jdc=122270672; thor=53D543F142545D43F57705A7BAF63BAF5FF77944F3359C34C6A2B04A334FBD7DCC0F83C8386C54C30E0344580A6E660CA6868AA01B9876F0656D42D0962CFD6B3DFD32D6E3AB27E5E8317ACF814E7C728676E11833F842732113C9581297B4C15185C2B186641F3F83334546781F436394314DFDD749EC520DE4AB8A765061DA48AAADE7D905458495390CFB1330DADA236538BD4518ABA765A0A40E64274101; shshshsID=4c10df0ba2c2c8d424f0cebc53436116_17_1619271517947; __jdb=122270672.36.16035486886821200401381|49.1619265954; 3AB9D23F7A4B3C9B=XCGA3JM7F7UFF2RROUAIJA6DBJCR7JR7KBEF53UIDJYQML3EUBPTK52VJGTPFUKT355YSNMZ7BDVZ2PYV7BF4QNBXI; cn=491; ipLoc-djd=22-1930-50945-57035.3894930080' \
--compressed