我使用的是云开发,appid是wx56c8f077de74b07c,调用AddOrder总是返回9300501,而且只有errMsg "openapi.logistics.addOrder:fail delivery logic fail" , 测试过name名称过长,填上company和postcode,orderId长度缩短,都无效,请问还有什么办法解决?测试时间为2020.7.10到2020.7.11 。云函数代码如下:
const cloud = require('wx-server-sdk')
cloud.init()
exports.main = async (event, context) => {
try {
const result = await cloud.openapi.logistics.addOrder({
addSource: 0,
bizId: "4127237172",
cargo: {
count: 1,
weight: 1,
spaceX: 50.1,
spaceY: 50.1,
spaceZ: 50.1,
detailList:[
{
name: "hsinmal 2020夏季新款显瘦法式优雅气质女小白裙短袖泡泡袖连衣裙",
count: 1
}
]
},
customRemark: "asdfasd",
deliveryId: "YUNDA",
insured: {useInsured: 0, insuredValue: 0},
openid: "outAq5FteTe0TcqkA1_SrX_wr82k",
orderId: "01234567890",
receiver: {
name: "张三",
tel: "010-2223333",
mobile: "1835921099023",
company: "xxx公司",
country: "中国",
postCode: ""
province: "广东省",
city: "广州市",
area: "海珠区",
address: "新港中路397号"
},
sender: {
name: "李先生",
tel: "010-2223333",
mobile: "18790099067",
company: "XXX公司",
country: "中国",
postCode: ""
province: "广东省",
city: "广州市",
area: "海珠区",
address: "茶韵陆169号"
},
service: {
serviceType: 0,
serviceName: "标准快件"
},
shop: {
wxaPath: "/pages/order-details/index?id=00dc18cf5f05e5e30009777e678cbf1a",
imgUrl: "cloud://hsinmal-g5t4h.616d-hsinmal-g5t4h-1302451841/good-image/202062520586443.jpg",
goodsName: "hsinmal 2020夏季新款显瘦法式优雅气质女小白裙短袖泡泡袖连衣裙",
goodsCount: 1
}
})
return result
} catch (err) {
return err
}
}
你好,请先参考社区内相关反馈:https://developers.weixin.qq.com/community/search?query=9300501&page=1&block=1&random=1594434540618
若还有问题,请提供小程序appid,完整请求、返回信息、订单号、下单时间
errCode: 9300501
errMsg: "openapi.logistics.addOrder:fail delivery logic fail