Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xiulianzw opened this issue Nov 15, 2020 · 5 comments
Open

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

xiulianzw opened this issue Nov 15, 2020 · 5 comments

Comments

@xiulianzw
Copy link

非常感谢博主开源的代码,我想问一下在提交订单时,博主的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
Copy link

你好,能把这个源代码发我一份吗?[email protected]谢谢

@xiulianzw
Copy link
Author

抱歉代码删了,找不到了

@xiulianzw
Copy link
Author

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

@guchaocom
Copy link

guchaocom commented Jan 28, 2021 via email

@something6680
Copy link

something6680 commented Mar 22, 2022

给你发了另一个版本的你可以去看看 @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"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants