小程序
小游戏
企业微信
微信支付
扫描小程序码分享
所有的请求参数都正确填写了 但还是data format error
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
我也碰到了这个问题
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
麻烦提供下请求的json数据以及appid跟请求的时间
{ add_source: 0,
wx_appid: 'wx0d30199498fc6c3e',
order_id: '914441013873225728',
openid: 'odqT74tz3S93bzdcyJM-CxCK39bU',
delivery_id: 'SF',
biz_id: 'SF_CASH',
custom_remark: '备注1',
sender:
{ name: '发件人',
mobile: '13611111111',
province: '广东省',
city: '深圳市',
area: '福田区',
address: '地区' },
receiver:
{ name: '收件人',
mobile: '13622222222',
city: '广州市',
area: '番禺区',
address: '长隆水上乐园' },
cargo:
{ count: 1,
weight: 0.361,
space_x: 60,
space_y: 40,
space_z: 35,
detail_list: [ { name: '商品2', count: 1 }, { name: '商品3', count: 1 } },
shop:
{ wxa_path: 'pages/me',
img_url: 'https://a.com/1.jpg',
goods_name: '商品2等',
goods_count: 2 },
insured: { use_insured: 1, insured_value: 100 },
service: { service_type: 0, service_name: '标准快递' },
expect_time: 0 }
detail_list: [ { name: '商品2', count: 1 }, { name: '商品3', count: 1 }]}
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
我也碰到了这个问题
麻烦提供下请求的json数据以及appid跟请求的时间
{ add_source: 0,
wx_appid: 'wx0d30199498fc6c3e',
order_id: '914441013873225728',
openid: 'odqT74tz3S93bzdcyJM-CxCK39bU',
delivery_id: 'SF',
biz_id: 'SF_CASH',
custom_remark: '备注1',
sender:
{ name: '发件人',
mobile: '13611111111',
province: '广东省',
city: '深圳市',
area: '福田区',
address: '地区' },
receiver:
{ name: '收件人',
mobile: '13622222222',
province: '广东省',
city: '广州市',
area: '番禺区',
address: '长隆水上乐园' },
cargo:
{ count: 1,
weight: 0.361,
space_x: 60,
space_y: 40,
space_z: 35,
detail_list: [ { name: '商品2', count: 1 }, { name: '商品3', count: 1 } },
shop:
{ wxa_path: 'pages/me',
img_url: 'https://a.com/1.jpg',
goods_name: '商品2等',
goods_count: 2 },
insured: { use_insured: 1, insured_value: 100 },
service: { service_type: 0, service_name: '标准快递' },
expect_time: 0 }
{"add_source":0,"wx_appid":"wx0d30199498fc6c3e","order_id":"914441013873225728","openid":"odqT74tz3S93bzdcyJM-CxCK39bU","delivery_id":"SF","biz_id":"SF_CASH","custom_remark":"备注1","sender":{"name":"发件人","mobile":"13611111111","province":"广东省","city":"深圳市","area":"福田区","address":"地区"},"receiver":{"name":"收件人","mobile":"13622222222","province":"广东省","city":"广州市","area":"番禺区","address":"长隆水上乐园"},"cargo":{"count":1,"weight":0.361,"space_x":60,"space_y":40,"space_z":35,"detail_list":[{"name":"商品2","count":1},{"name":"商品3","count":1}]},"shop":{"wxa_path":"pages/me","img_url":"https://a.com/1.jpg","goods_name":"商品2等","goods_count":2},"insured":{"use_insured":1,"insured_value":100},"service":{"service_type":0,"service_name":"标准快递"},"expect_time":0}
post的数据错了,只需要这部分
detail_list: [ { name: '商品2', count: 1 }, { name: '商品3', count: 1 }]}