收藏
回答

自定义组件获取订单详情一直订单openid与接口accesstoken的appid不一致?

https://api.weixin.qq.com/shop/order/add

这个接口返回参数 :{"errcode": 0,"data": {"order_id": 2061230906501038081,"out_order_id": "114212","final_price": 2,"ticket": "7f72b6ff-7966-48ac-bbe8-a39d1ca26591","ticket_expire_time": "2021-09-25 10:40:06"}}

请求参数中的两个值:"out_order_id": "114212","openid": "obdLE4gDF1IrNFNakAKaVpvGGlI4"

https://api.weixin.qq.com/shop/order/get   请求参数:order_id=2061230906501038081&out_order_id=114212&openid=obdLE4gDF1IrNFNakAKaVpvGGlI4

返回参数:{"code":0,"msg":null,"data":"{\"errcode\":1010014,\"errmsg\":\"订单openid与接口accesstoken的appid不一致 rid: 614d4113-7f68f09d-7eecedfe\"}"}


回答关注问题邀请回答
收藏
登录 后发表内容