收藏
回答

小程序物流助手沙盒测试下单,返回41001,access_token missing,什么原因啊?

入参:{

            "access_token":'32_uZS-WjglmZp_hIDFjyu3sl0VpvydkunUBVcqhmU_Y83IYq1yX91BPMaHfQGOQrQpaXg8ELX4G25qbmoZphkmxtc_ZRXbzM_wyNwjk-kHF4q0wF_hr575uZOaeWrhyA-UfDxE71lWy1kOIZt0CHLaAAATYC',

            "add_source": 0,

            "order_id": "01234567890123456789",

            "openid": 'oNe145ITmgZlKstssC5f5UqHm5B0',

            "delivery_id": "TEST",

            "biz_id": "test_biz_id",

            "custom_remark": "易碎物品",

            "sender": {

              "name": "张三",

              "tel": "020-88888888",

              "mobile": "18666666666",

              "company": "公司名",

              "post_code": "123456",

              "country": "中国",

              "province": "广东省",

              "city": "广州市",

              "area": "海珠区",

              "address": "XX路XX号XX大厦XX栋XX"

            },

            "receiver": {

              "name": "王小蒙",

              "tel": "020-77777777",

              "mobile": "18610000000",

              "company": "公司名",

              "post_code": "654321",

              "country": "中国",

              "province": "广东省",

              "city": "广州市",

              "area": "天河区",

              "address": "XX路XX号XX大厦XX栋XX"

            },

            "shop": {

              "wxa_path": "/index/index?from=waybill&id=01234567890123456789",

              "img_url": "https://mmbiz.qpic.cn/mmbiz_png/OiaFLUqewuIDNQnTiaCInIG8ibdosYHhQHPbXJUrqYSNIcBL60vo4LIjlcoNG1QPkeH5GWWEB41Ny895CokeAah8A/640",

              "goods_name": "微信气泡狗抱枕&微信气泡狗钥匙扣",

              "goods_count": 2

            },

            "cargo": {

              "count": 2,

              "weight": 5.5,

              "space_x": 30.5,

              "space_y": 20,

              "space_z": 20,

              "detail_list": [

                {

                  "name": "微信气泡狗抱枕",

                  "count": 1

                },

                {

                  "name": "微信气泡狗钥匙扣",

                  "count": 1

                }

              ]

            },

            "insured": {

              "use_insured": 1,

              "insured_value": 10000

            },

            "service": {

              "service_type": 1,

              "service_name": "test_service_name"

            }

          }

出参:{ errcode: 41001,

  errmsg: 'access_token missing hints: [wHHBNh0gE-0LJKqA!]' }


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

1 个回答

  • Mr.Zhao
    Mr.Zhao
    2020-04-16

    access_token是在url后面拼接的,不是在json里面的

    2020-04-16
    有用
    回复 6
    • 雨花石
      雨花石
      2020-04-16
      function addorder(params){
        return request({
          baseURL: 'https://api.weixin.qq.com/',
          url:'cgi-bin/express/business/order/add',
          method: 'post',
          data:params
        })
      }


      是post请求啊
      2020-04-16
      回复
    • Mr.Zhao
      Mr.Zhao
      2020-04-16回复雨花石
      access_token是在url后面拼接的,不是在json里面的  再说第二次,不想说第三次了,别抬杠,动手试试
      2020-04-16
      回复
    • 雨花石
      雨花石
      2020-04-16
      大神啊,果然不报access_token丢失了
      2020-04-16
      回复
    • 雨花石
      雨花石
      2020-04-16
      errcode: 48001,
        errmsg: api unauthorized hints: [viHBDXyMe-FKetsA!];什么情况啊,大神!
      2020-04-16
      回复
    • Mr.Zhao
      Mr.Zhao
      2020-04-16回复雨花石
      这个接口没用过,不知道是不是得开通什么功能
      2020-04-16
      回复
    查看更多(1)
登录 后发表内容
问题标签