收藏
回答

即时配送报错 930570?

即时配送 addOrder接口调用报错:

错误代码:930570, 错误信息:cargo_first_class or cargo_second_class invalid hint: [1wLfgA07448708],

【请求参数】:{"shop":{"goods_name":"泡椒牛肉套饭等1件","img_url":"https://meishihui.oss-cn-chengdu.aliyuncs.com/upload/rc-upload-1585054564750-17.jpg","wxa_path":"/page/index/index","goods_count":1},"receiver":{"address_detail":"蛇口新街渔港大楼","address":"蛇口新街渔港大楼","lng":113.931526,"city":"深圳市","phone":"18566737720","name":"WangWeicong","coordinate_type":0,"lat":22.486591},"sender":{"address_detail":"蛇口新街渔港大楼","address":"蛇口新街渔港大楼","lng":26.585417,"city":"深圳市","phone":"18566737720","name":"WangWeicong","coordinate_type":0,"lat":106.72225},"openid":"osdOB4qIKg-0_yHgQhxjr4ln2-w0","delivery_id":"TEST","shopid":"test_shop_id","delivery_sign":"5f5ce9f86055167a12067d17203d2149b9166cd9","shop_order_id":"441585205722354","cargo":{"cargo_first_class":"美食宵夜","goods_length":1,"goods_height":1,"goods_width":1,"cargo_second_class":"零食小吃","goods_value":5,"goods_detail":{"goods":[{"good_count":1,"good_price":25.00,"good_unit":"元","good_name":"泡椒牛肉套饭"}]},"goods_weight":1},"shop_no":"test_shop_id","order_info":{"is_direct_delivery":0,"note":"test_node","delivery_service_code":"","poi_seq":"1111","expected_delivery_time":0,"is_finish_code_needed":1,"is_pickup_code_needed":1,"order_time":1585205744,"order_type":"0","is_insured":0,"tips":0}}





回答关注问题邀请回答
收藏

1 个回答

  • raylin
    raylin
    2020-03-26

    https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/immediate-delivery/category.html

    cargo_first_class和cargo_second_class请在这里选择,美食宵夜要改成美食夜宵

    2020-03-26
    有用 1
    回复 5
    • 野生奥特曼
      野生奥特曼
      2020-03-27
      好的  谢谢
      2020-03-27
      回复
    • LJN😄
      LJN😄
      2020-04-09
      同样是调用addorder接口报错:错误代码:930570, 错误信息:cargo_first_class or cargo_second_class invalid hint: [1wLfgA07448708],
      【错误参数】:json={"shop":{"goods_name":"测试商品等","img_url":"https://litemall-cn.oss-cn-shenzhen.aliyuncs.com/5asp4oz4a8df40mleb8f.jpg","wxa_path":"/pages/ucenter/order-detail/order-detail?792","goods_count":1},"receiver":{"address_detail":"厦门市湖里区金山街道禾祥东路170号","address":"厦门市湖里区金山街道禾祥东路170号","lng":118.122795,"city":"厦门市","phone":"0592-5811506","name":"铁喵测试门店","coordinateType":1,"lat":24.478035},"sender":{"address_detail":"厦门市湖里区金山街道禾祥东路170号","address":"厦门市湖里区金山街道禾祥东路170号","lng":118.122795,"city":"厦门市","phone":"0592-5811506","name":"铁喵测试门店","coordinateType":1,"lat":24.478035},"openid":"ocMDs4gkKLVsRVbEGZMV6hYdmJM8","delivery_id":"TEST","delivery_sign":"9930e1dbf1665bba7e4a88059d872aad8194d21d","shopid":"test_shop_id","cargo":{"cargo_first_class":"美食夜宵","cargo_second_class":"零食小吃","goods_value":0.01,"goods_detail":{"goods":[{"good_count":1,"good_name":"测试商品"}]},"goods_weight":2.0},"shop_order_id":"20200409298082","order_info":{"deliveryServiceCode":" ","rider_pick_method":1,"is_finish_code_needed":1,"is_pickup_code_needed":1,"order_time":1586403179},"shop_no":"test-110"}
      2020-04-09
      回复
    • Unbelievable
      Unbelievable
      2020-05-07
      你这个没用呀 ,按文档填的还是报这错
      2020-05-07
      回复
    • raylin
      raylin
      2020-05-08回复Unbelievable
      请先确认一下编码方式,python建议 json.dumps(b, ensure_ascii=False),php建议 json_encode($arr, JSON_UNESCAPED_UNICODE)
      2020-05-08
      回复
    • 7天
      7天
      2021-07-26回复raylin
      post json json dump?????????
      2021-07-26
      回复
登录 后发表内容
问题标签