入参:{
"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!]' }
access_token是在url后面拼接的,不是在json里面的
return request({
baseURL: 'https://api.weixin.qq.com/',
url:'cgi-bin/express/business/order/add',
method: 'post',
data:params
})
}
是post请求啊
errmsg: api unauthorized hints: [viHBDXyMe-FKetsA!];什么情况啊,大神!