cycz / jdBuyMask

祝大家抗疫成功
1.88k stars 609 forks source link

关于request中post的data参数是如何获取? #93

Open xiulianzw opened 3 years ago

xiulianzw commented 3 years ago

非常感谢博主开源的代码,我想问一下在提交订单时,博主的data参数是怎么获取到的 data = { 'overseaPurchaseCookies': '', 'vendorRemarks': '[]', 'submitOrderParam.sopNotPutInvoice': 'false', 'submitOrderParam.trackID': 'TestTrackId', 'submitOrderParam.ignorePriceChange': '0', 'submitOrderParam.btSupport': '0', 'riskControl': self.risk_control, 'submitOrderParam.isBestCoupon': 1, 'submitOrderParam.jxj': 1, 'submitOrderParam.trackId': self.track_id, # Todo: need to get trackId 'submitOrderParam.eid': self.eid, 'submitOrderParam.fp': self.fp, 'submitOrderParam.needCheck': 1, } 像submitOrderParam这样的参数值,是怎么获取到的?方便赐教一下吗?

TianTang1993 commented 3 years ago

你好,能把这个源代码发我一份吗?1025889846@qq.com谢谢

xiulianzw commented 3 years ago

抱歉代码删了,找不到了

xiulianzw commented 3 years ago

给你发了另一个版本的你可以去看看 @TianTang1993

guchaocom commented 3 years ago

你是???发自我的荣耀手机-------- 原始邮件 --------发件人: xiulian notifications@github.com日期: 2021年1月28日周四 20:04收件人: cycz/jdBuyMask jdBuyMask@noreply.github.com抄送: Subscribed subscribed@noreply.github.com主 题: Re: [cycz/jdBuyMask] 关于request中post的data参数是如何获取? (#93)

给你发了另一个版本的你可以去看看 @TianTang1993

—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.

something6680 commented 2 years ago

给你发了另一个版本的你可以去看看 @TianTang1993

你好 作为一个刚自学python不久的小白也想要一份参考一下 没有源码也没关系 可以大致看下怎么获取的么? 另外有些很讨厌的返回参数前面有数字 转不成json就很烦 想请教下怎么做才能固定获取里面某个项的值? 例如:AddressList({"errCode":"0","retCode":"0","msg":"","nextUrl":"","idc":"","token":"XXXXX","dealRecord":"","jdaddrid":"","jdaddrname":"","siteGray":"","encryptCode":"","list":[ {"label":"","type":"XXXXX","rgid":"","adid":"XXXXX","addrdetail":"XXXXX","addrfull":"XXXXX","name":"XXX","mobile":"XXXXX","phone":"","XXXXX":"","email":"","idCard":"","nameCode":"","provinceId":"XXXXX","cityId":"XXXXX","countyId":"XXXXX","townId":"XXXXX","provinceName":"XXXXX","cityName":"XXXXXXXXXX区","countyName":"XXXXX","townName":"","areacode":"","need_upgrade":"0","default_address":"1","longitude":"XXXXX","latitude":"XXXXX","readOnly":"XXXXX"}