所有信息在精易网页助手上就是对的 但是弄到python就错误了
正确的返回:{"body":null,"message":"此手机号码未注册","status":"600"}
python错误的返回:{"body":null,"message":"请检查您所在环境,或联系在线客服!","status":"600"}
跪求大佬这个是哪里出现了问题呢,处理了很久都不知道怎么解决,也是才接触python
[Python] 纯文本查看 复制代码 import requests
import json
import hashlib
import urllib3
urllib3.disable_warnings()
url = "https://feserver.longloan.cn/feserver/common/user/v3.0/sendForgetSMSNotice.verify"
data = "screenWidth=1440&deviceId=530000000250075&networkType=WIFI&screenHigh=810&deviceType=android&isProxy=JEtIJDgGn%2B24Rc7INRFPAQw6WTt5LsWlcZUP2dVaIa0VLnpkHSQchF2ga2dNKlneoPxmSMgGr6l8qtiTfbKnxQ%3D%3D&iscommon=true&deviceSystemVersion=6.0.1&operator=&imei=530000000250075&phoneBrand=Android&ip=10.0.2.15&bizChannel=10007&deviceName=MuMu&applicationSourceNo=3.0.5&phone=18596325555&captchaCode=&signature=4453a0ca5fdd3d245c09b3a16278e0fc&appId=xc"
head = {
"APP - VERIFICATION": "a21448c305f1676c5bb060159d1a9536",
"Content-Type": "application/x-www-form-urlencoded",
"Content-Length": "440",
"Host": "feserver.longloan.cn",
"Connection": "Keep-Alive",
"Accept-Encoding": "gzip",
"User-Agent": "okhttp/3.12.1",
}
r = requests.post(url, data, head)
res = r.text
print(res)
|