通过微信优惠券二维码提取链接: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