小程序
小游戏
企业微信
微信支付
扫描小程序码分享
{"errcode":47001,"errmsg":"data format error hint: [NkRhxa0091a394]"}
没说什么字段出错,核对了下没找出错误来,请问可能是什么原因导致的这个错误
1 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
json 方式提交啊
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
{
"shopid": "xxxxxxx",
"shop_order_id": "691669621186494464",
"shop_no": "xxxx",
"delivery_sign": "xxxx",
"delivery_id": "MTPS",
"openid": "xxx",
"receiver": {
"name": "先",
"city": "杭州市",
"address": "江干区",
"address_detail": "xxx",
"phone": "xxx",
"lng": 30.315633,
"lat": 120.249684,
"coordinate_type": 0
},
"cargo": {
"goods_value": 30.0,
"goods_height": 30.0,
"goods_length": 30.0,
"goods_width": 30.0,
"goods_weight": 1.0,
"goods_detail": [{
"good_count": 1,
"good_name": "修身紧身印花"
}],
"cargo_first_class": "11",
"cargo_second_class": "11111"
"order_info": {
"delivery_service_code": "4011"
"shop": {
"wxa_path": "/pages/tabpage/order/order",
"img_url": "https://zydyf.oss-cn-hangzhou.aliyuncs.com/b49c5f8635024a61a99dd7e0c922e206.jpg",
"goods_name": "修身紧身印花",
"goods_count": 1
}
BasicHeader jsonHeader = new BasicHeader("Content-Type", ContentType.APPLICATION_JSON.toString());
HttpUriRequest httpUriRequest = RequestBuilder
.post()
.setHeader(jsonHeader)
.setUri("https://api.weixin.qq.com/cgi-bin/express/local/business/order/add")
.addParameter("access_token", getAccessToken())
.setEntity(new StringEntity(GsonUtil.toJson(o2oOrder), Charset.forName("utf-8")))
.build();
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
json 方式提交啊
{
"shopid": "xxxxxxx",
"shop_order_id": "691669621186494464",
"shop_no": "xxxx",
"delivery_sign": "xxxx",
"delivery_id": "MTPS",
"openid": "xxx",
"receiver": {
"name": "先",
"city": "杭州市",
"address": "江干区",
"address_detail": "xxx",
"phone": "xxx",
"lng": 30.315633,
"lat": 120.249684,
"coordinate_type": 0
},
"cargo": {
"goods_value": 30.0,
"goods_height": 30.0,
"goods_length": 30.0,
"goods_width": 30.0,
"goods_weight": 1.0,
"goods_detail": [{
"good_count": 1,
"good_name": "修身紧身印花"
}],
"cargo_first_class": "11",
"cargo_second_class": "11111"
},
"order_info": {
"delivery_service_code": "4011"
},
"shop": {
"wxa_path": "/pages/tabpage/order/order",
"img_url": "https://zydyf.oss-cn-hangzhou.aliyuncs.com/b49c5f8635024a61a99dd7e0c922e206.jpg",
"goods_name": "修身紧身印花",
"goods_count": 1
}
}
BasicHeader jsonHeader = new BasicHeader("Content-Type", ContentType.APPLICATION_JSON.toString());
HttpUriRequest httpUriRequest = RequestBuilder
.post()
.setHeader(jsonHeader)
.setUri("https://api.weixin.qq.com/cgi-bin/express/local/business/order/add")
.addParameter("access_token", getAccessToken())
.setEntity(new StringEntity(GsonUtil.toJson(o2oOrder), Charset.forName("utf-8")))
.build();