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

报错代码:

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":"%2Fpages%2Fshop%2Findex","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)

报错内容:

{'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'}
posted @ 2020-06-19 10:23  hank-li  阅读(976)  评论(0编辑  收藏  举报