- 公众号网页如何本地调试?
本地是VUE项目,配置到公众号上,线上授权是没问题的,本地用开发者工具能够打开本地的服务,但是用户授权没法完成,请求的接口是返回302。 netweork发现有个请求:https://open.weixin.qq.com/connect/oauth2/authorize?appid=xxxx&redirect_uri=xxxxxxx&response_type=code&scope=snsapi_userinfo&state=xxx&connect_redirect=1,但是返回内容如下: <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"> </head> <body> <script type="text/javascript"> var ua = navigator.userAgent.toLowerCase(); var isWeixin = ua.indexOf('micromessenger') != -1; var isAndroid = ua.indexOf('android') != -1; var isIos = (ua.indexOf('iphone') != -1) || (ua.indexOf('ipad') != -1); if (!isWeixin) { document.head.innerHTML = '<title>抱歉,出错了</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"><link rel="stylesheet" type="text/css" href="https://res.wx.qq.com/open/libs/weui/0.4.1/weui.css">'; document.body.innerHTML = '<div class="weui_msg"><div class="weui_icon_area"><i class="weui_icon_info weui_icon_msg"></i></div><div class="weui_text_area"><h4 class="weui_msg_title">请在微信客户端打开链接</h4></div></div>'; } </script> </body> </html> 如果将此请求复制到地址栏是能够请求成功的,所以有人知道本地该如何调试。
2022-06-14 - 订阅消息模板审核中如何取消?
我想申请一个模板,但申请了才发现模板的标题需要改动,请问如何取消此次申请?
2021-08-03