{"errcode":990013,"errmsg":"expecting order_info.out_order_id.size >= 1, actually 0 rid: 62cd7e0e-5757ff10-2a4e830f"}
这个返回的是什么错误
同样的请求数据,放在postman是能够通过的,但是放在代码里却返回上面的信息;哪位大神帮忙解释一下;
接口https://api.weixin.qq.com/shop/order/add?access_token=
请求参数
{
"create_time": "2022-07-12 21:47:23",
"out_order_id": "Jld311",
"openid": "osCt_5XvONLABNaivA5QeOzMyBu0",
"path": "\/pagesA\/indent\/detail?id=311",
"order_detail": {
"product_infos": [
{
"out_product_id": 6935,
"out_sku_id": 11251,
"product_cnt": 1,
"sale_price": 39800,
"sku_real_price": 39800,
"path": "\/pages\/product\/detail?id=311",
"title": "\u6b4c\u5982\u8bd7Goouuzh\u963f\u62c9\u6bd4\u5361\u624b\u51b2\u5496\u5561\u5957\u88c5",
"head_img": "https:\/\/img.jldmall.cn\/image\/product_sku\/5tyFz1657533007.jpg"
}
],
"pay_info": {
"pay_method_type": 0
},
"price_info": {
"order_price": 39800,
"freight": 0,
"discounted_price": 0,
"additional_price": 0,
"additional_remarks": ""
}
},
"delivery_detail": {
"delivery_type": 1
},
"address_info": {
"receiver_name": "\u7ae0\u4ee5\u654f",
"detailed_address": "\u6885\u6c5f\u5357\u82d1\u6885\u666f\u8def616\u5f0485\u53f7606",
"tel_number": "13736069879",
"province": "\u6d59\u6c5f\u7701",
"city": "\u5b81\u6ce2\u5e02",
"town": "\u911e\u5dde\u533a"
},
"fund_type": 1,
"expire_time": 1657634543,
"trace_id": "1_iDFG5vWZnZIdXQcOcs1mQKUHchRHqGGBgORdPKbT0_M",
"aftersale_duration": 7
}
楼主解决了么,遇到同样的问题了