收藏
回答

物流助手logistics.addOrder 47003?

{"errcode":40003,"errmsg":"invalid openid rid: 5fb62d96-313b33f2-68b54927"}

openid无效

请求参数

{"add_source":0,"biz_id":"0","cargo":{"space_y":1,"space_z":1,"detail_list":[{"name":"测试商品4","count":4}],"count":1,"weight":1.0,"space_x":1},"delivery_id":"YTO","expect_time":1605783116,"insured":{"use_insured":0,"insured_value":0},"openid":"o6jg641Z8d6CTLZCij4LYzx1-tOg","order_id":"1","receiver":{"area":"","address":"","province":"","city":""},"sender":{"area":"111111","country":"11111","address":"1111","province":"1111","city":"1111","post_code":"11111","name":"测试","mobile":"111111","company":"11111"},"service":{"service_type":0,"service_name":"普通快递"},"shop":{"goods_name":"测试商品4","img_url":"img_url","wxa_path":"wxa_path","goods_count":4}}

openid通过接口获取的,直接用就无效了

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

1 个回答

  • 张三疯
    张三疯
    2020-11-19

    不如你打印下请求的json?

    tips:你现在传入的openid是6asd****df87

    2020-11-19
    有用
    回复 3
    • SilentLove
      SilentLove
      2020-11-20
      {"add_source":0,"biz_id":"0","cargo":{"space_y":1,"count":1,"space_z":1,"weight":1.0,"detail_list":[{"name":"测试商品4","count":4}],"space_x":1},"delivery_id":"YTO","expect_time":1605838895,"insured":{"use_insured":0,"insured_value":0},"openid":"o6jg641Z8d6CTLZCij4LYzx1-tOg","order_id":"1","receiver":{"area":"","name":"啊嗨","address":"","province":"","city":""},"sender":{"area":"111111","country":"11111","address":"1111","province":"1111","city":"1111","post_code":"11111","name":"测试","mobile":"111111","company":"11111"},"service":{"service_type":0,"service_name":"普通快递"},"shop":{"wxa_path":"wxa_path","goods_name":"测试商品4","goods_count":4,"img_url":"img_url"}}
      2020-11-20
      回复
    • SilentLove
      SilentLove
      2020-11-20
      请求的json打印出来的openid是一样的,可是为什么和你说我传入的openid会有区别
      2020-11-20
      回复
    • 张三疯
      张三疯
      2020-11-20回复SilentLove
      不会的。我是根据rid查询的json串。一定是你传错了。
      2020-11-20
      回复
登录 后发表内容
问题标签