API:https://api.weixin.qq.com/cgi-bin/express/delivery/open_msg/follow_waybill?access_token=XXX
API名称:物流消息传运单接口 follow_waybill
在运单号生成之后,在服务端调用,马上(没有对运单号进行任何操作)调用上述接口。
上传的参数如下:
{openid=oYorN4loMgkrLDQfe038YJ0JQb6c,
receiver_phone=13688888888,
waybill_id=772016995011285,
trans_id=4200001447202205208283277445,
order_detail_path=/pages/order/order-show?id=1664,
goods_info={ wxa_path = /pages/order/order-show?id=1664, detail_list = [......此处略过]}}
Post请求地址:https://api.weixin.qq.com/cgi-bin/express/delivery/open_msg/follow_waybill?access_token=实时获取的token
返回结果:
{"errcode":40003,"errmsg":"invalid openid detail: [openid错误] rid: 628ef7b1-17bc008b-100e81e9"}
无效openid,检查一下openid
我的也是提示openid错误
直接在数据库拿的