收藏
回答

物流助手 addOrder 返回 9300501?

我使用的是云开发,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
  }
}
回答关注问题邀请回答
收藏

1 个回答

  • 灵芝
    灵芝
    2020-07-11

    你好,请先参考社区内相关反馈:https://developers.weixin.qq.com/community/search?query=9300501&page=1&block=1&random=1594434540618

    若还有问题,请提供小程序appid,完整请求、返回信息、订单号、下单时间

    2020-07-11
    有用
    回复 4
    • spike
      spike
      2020-07-11
      这些都看过了,麻烦帮忙查看下错误原因,appid:wx56c8f077de74b07c , 完整请求就是上面的这些代码,返回的信息是在下面,订单号是不是orderId,这个我是随便设置的 ,设置成了12345678,下单时间为 2020年7月11日7点左右
      2020-07-11
      回复
    • 灵芝
      灵芝
      2020-07-11回复spike
      orderId填写正确再试下
      2020-07-11
      回复
    • spike
      spike
      2020-07-11
      测试过了,OrderId取 00dc18cf5f05e5e30009777e678cbf1a 的前10位,前20位都不行
      2020-07-11
      回复
    • 灵芝
      灵芝
      2020-07-13回复spike
      那还是需要按上述提示提供对应的完整请求、返回信息、订单号、下单具体时间点
      2020-07-13
      回复
登录 后发表内容
问题标签