H5提取微信优惠券无法打开的解决办法

通过微信优惠券二维码提取链接:https://action.weixin.qq.com/mmpaymktcouponweb/getcoupon?batch_id=****&employee_id=***&mch_id=***&cert_id=0&req_type=1&scene=1&source=payplatform&sign=*** ,这个链接放到H5里面无法直接跳转,会提示错误

其实这个问题的解决办法很简单,只需要在URL后加上#wechat_redirect 即可解决,如上面的链接

https://action.weixin.qq.com/mmpaymktcouponweb/getcoupon?batch_id=****&employee_id=***&mch_id=***&cert_id=0&req_type=1&scene=1&source=payplatform&sign=***#wechat_redirect

参考:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_4_1.shtml

This entry was posted in 应用. Bookmark the permalink.

发表评论