req = requests.post调用
req.statu_scode == 200,但是仍然报错:
{"code":"404","message":"参数解析异常,请检查方法的参数是否有效"}
通过postman调用ok,代码直接执行也ok:
修改为json格式调用,报错:
data_pay =[{
'userId': '867857567567568678',
'orderCode': '999010188371',
'paymentType': '1',
'paymentMethod': 'ICBC_SBERBANK'
}]
PS E:\Python> & C:/Users/AppData/Local/Programs/Python/Python38/python.exe e:/Python/Test/OrderGui/OrderStatus.py
200
{"info":"Duplicate data","resultCode":2000}
一开始以为'ContentType': 'application/json'格式不对应导致,添加后:
resp_