[未解决]报错:requests post请求无法返回数据

2020-09-17 10:41:11 浏览数 (1)

报错代码:

代码语言:javascript复制
f={"appid":"wx0e7876190882657b","env":"production","pid":"100000568810","storeId":326081810,"templateId":2817,"wxTemplateId":2817,"zhanId":378279,"refer":"","openid":"oOPlO5U0Q56iegYMJujqP-csYt5w","source":1,"sdpSource":"ec","longitude":114.05454,"latitude":22.52291,"pageSize":10,"pageNum":1,"queryParameter":{"callBackUrl":"/pages/shop/index","activityId":"","activityType":"","cityCode":"500100","key":"null","selectStoreType":""}}
resp=session.post(url=self.base_url.format("getStoreListPageStoreList"),headers=self.headers,verify=False,data=json.dumps(f)).json()
pprint(resp)

报错内容:

代码语言:javascript复制
{'data': {'addressUrl': '',
          'callBackType': 2,
          'homeStoreId': 323890810,
          'homeStoreName': 'xxx',
          'mainUrl': '/pages/shop/index?storeId=323890810',
          'needHeadStore': False,
          'storeList': [],
          'storeListExceptionMsg': '您所在城市的门店暂未入驻网上商城'},
 'errcode': '0',
 'errmsg': '处理成功',
 'globalTicket': '6998-1592533192.078-10.16.252.17-646-3189355418',
 'monitorTrackId': '842c25a7-6a20-49fa-90ae-6fff8d970660'}

0 人点赞