收藏
回答

【物流助手】即时配送 预下单返回930561 args error hint 什么问题?


提交时间:2020-04-02 16:38:48

提交参数json格式

 {"shopid":"dadaxxxx","shop_no":"","delivery_sign":"xxxxxxxxx","delivery_id":"DADA","shop_order_id":"158581672771688","openid":"o3W0Y43MvQnlpefLirLhGG8PzIVc","sender":{"name":"\u5929\u5929\u5546\u5bb6-\u96c6\u7f8e1","city":"\u53a6\u95e8\u5e02","address":"\u798f\u5efa\u7701\u53a6\u95e8\u5e02\u96c6\u7f8e\u533a\u674f\u6797\u6e7e\u8425\u8fd0\u4e2d\u5fc31\u53f7\u697c","address_detail":"\u798f\u5efa\u7701\u53a6\u95e8\u5e02\u96c6\u7f8e\u533a\u674f\u6797\u6e7e\u8425\u8fd0\u4e2d\u5fc31\u53f7\u697c","phone":"18000000000","lng":" 118.06235","lat":"24.59456"},"receiver":{"name":"111","city":"\u53a6\u95e8\u5e02","address":"\u798f\u5efa\u7701\u53a6\u95e8\u5e02\u96c6\u7f8e\u533a\u674f\u6797\u6e7e\u8425\u8fd0\u4e2d\u5fc3","address_detail":"\u798f\u5efa\u7701\u53a6\u95e8\u5e02\u96c6\u7f8e\u533a\u674f\u6797\u6e7e\u8425\u8fd0\u4e2d\u5fc3","phone":"111111","lng":"118.062347","lat":"24.594561"},"cargo":{"goods_value":"\u8d2d\u7269\u8f66\u666e\u901a\u5546\u54c1-\u4f1a\u5458\u5546\u54c12","goods_weight":1,"cargo_first_class":"\u7f8e\u98df\u591c\u5bb5","cargo_second_class":"\u5feb\u9910\/\u5730\u65b9\u83dc"},"order_info":{"order_type":"0","poi_seq":"158581672771688","note":"","order_time":1585816728,"is_insured":0,"rider_pick_method":1,"is_finish_code_needed":0,"is_pickup_code_needed":0},"shop":{"wxa_path":"xxxxx\/plugin3\/delivery\/psOrder\/psOrder","img_url":"https:\/\/xxx.com\\/images\/960\/2018\/10\/VYJDJVY4yrC4V0bXf00J90Nl0R2YNY.png","goods_name":"\u8d2d\u7269\u8f66\u666e\u901a\u5546\u54c1-\u4f1a\u5458\u5546\u54c12","goods_count":1},"sub_biz_id":"65"}  

数组格式

array (

  'shopid' => 'dadaxxxxxx',

  'shop_no' => '',

  'delivery_sign' => 'xxxxxxxxxx',

  'delivery_id' => 'DADA',

  'shop_order_id' => '158581672771688',

  'openid' => 'o3W0Y43MvQnlpefLirLhGG8PzIVc',

  'sender' => 

  array (

    'name' => '天天商家-集美1',

    'city' => '厦门市',

    'address' => '福建省厦门市集美区杏林湾营运中心1号楼',

    'address_detail' => '福建省厦门市集美区杏林湾营运中心1号楼',

    'phone' => '18000000000',

    'lng' => ' 118.06235',

    'lat' => '24.59456',

  ),

  'receiver' => 

  array (

    'name' => '111',

    'city' => '厦门市',

    'address' => '福建省厦门市集美区杏林湾营运中心',

    'address_detail' => '福建省厦门市集美区杏林湾营运中心',

    'phone' => '111111',

    'lng' => '118.062347',

    'lat' => '24.594561',

  ),

  'cargo' => 

  array (

    'goods_value' => '购物车普通商品-会员商品2',

    'goods_weight' => 1,

    'cargo_first_class' => '美食夜宵',

    'cargo_second_class' => '快餐/地方菜',

  ),

  'order_info' => 

  array (

    'order_type' => '0',

    'poi_seq' => '158581672771688',

    'note' => '',

    'order_time' => 1585816728,

    'is_insured' => 0,

    'rider_pick_method' => 1,

    'is_finish_code_needed' => 0,

    'is_pickup_code_needed' => 0,

  ),

  'shop' => 

  array (

    'wxa_path' => 'xxxxx/plugin3/delivery/psOrder/psOrder',

    'img_url' => '',

    'goods_name' => '购物车普通商品-会员商品2',

    'goods_count' => 1,

  ),

  'sub_biz_id' => '65',

)  

最后一次编辑于  2020-04-02
回答关注问题邀请回答
收藏

1 个回答

  • raylin
    raylin
    2020-04-02

    请先确认一下编码方式,python建议 json.dumps(b, ensure_ascii=False),php建议 json_encode($arr, JSON_UNESCAPED_UNICODE)

    2020-04-02
    有用 1
    回复 1
    • 淡蓝海寓
      淡蓝海寓
      2020-04-02
      谢谢,还真是
      2020-04-02
      回复
登录 后发表内容
问题标签