收藏
回答

price_info字段异常,请检查json及字段合法性?

调用https://api.weixin.qq.com/shop/order/add?access_token=xxxxxxxxx

返回错误

交易组件下单:{"create_time":"2022-04-13 16:42:42","type":0,"out_order_id":"659253003","openid":"ok-oD5paVPd9ls6oVYjGNkqYHqro","path":"user/order/orderdetail?orderId=659253003","scene":"1195","out_user_id":"zahngli","order_detail":{"product_infos":[{"out_product_id":"63602992","out_sku_id":"wx008948","product_cnt":2,"sale_price":5000,"real_price":5000,"path":"/product/detail/index?infoId=63602992","title":"zy123测试3333","head_img":"https://mmecimage.cn/p/wxc627db84bc3463e9/HCKupVHhxxqVOPRjkDJMY6M93PRjxjlUL4f6c3zj5A"}],"pay_info":{"pay_method_type":0,"prepay_id":"wx202204122009395522657a690389285100","prepay_time":"2022-04-13 16:42:42"},"price_info":{"order_price":5000,"freight":0,"discounted_price":0,"additional_price":0,"additional_remarks":"测试信息"}},"delivery_detail":{"delivery_type":2},"address_info":{"receiver_name":"test","detailed_address":"广东广州市天河区","tel_number":"13875687908","country":"","province":"","city":"","town":""}}

交易组件下单返回:{"state":"error","msg":"小程序生成订单出错:错误代码:1010005, 错误信息:price_info字段异常,请检查json及字段合法性 rid: 62568d02-52941c04-4ae48589,微信原始报文:{\"errcode\":1010005,\"errmsg\":\"price_info字段异常,请检查json及字段合法性 rid: 62568d02-52941c04-4ae48589\"}","code":null,"data":null,"success":false}


回答关注问题邀请回答
收藏
登录 后发表内容