- 非微信官方网页,请确认是否继续访问。?
[图片]域名已经备案过,而且也在微信公众号后台配置了还一直报错 提交申请了 到现在也没有处理[图片]
04-01 - 微信公众号网页开发H5页面JS-SDK wx.getLocation 用户拒绝授权后如何再次调起?
这边的场景是需要根据定位确认地点,提交到后台,不能让用户手动选择地点,但是如果用户拒绝定位了,也没有办法再次唤起了 我是网页 不是小程序 请问有办法解决么?暂时测试的是 拒绝后再次进入初始化sdk 也不会弹窗授权弹窗了
03-14 - 请问如何在微信公众号网页内跳转高德导航?
开发了一个微信公众号网页,其中有导航的功能需要跳转到高德导航APP进行导航,在浏览器里可以唤起,但是在微信内无法唤起,请问是有什么限制吗,如果有限制的情况下 是否有其他解决方案呢 const handleNavigate = () => { // 定义经纬度 const latitude = 34.24; const longitude = 111.11; // 获取用户代理判断设备类型 const userAgent = navigator.userAgent.toLowerCase(); const isIOS = /iphone|ipad|ipod/.test(userAgent); const isAndroid = userAgent.indexOf('android') > -1; // 构建高德导航URL scheme let mapUrl = ''; if (isIOS) { // iOS高德地图URL scheme mapUrl = `iosamap://navi?sourceApplication=appName&lat=${latitude}&lon=${longitude}&dev=0&style=2`; } else if (isAndroid) { // Android高德地图URL scheme mapUrl = `androidamap://navi?sourceApplication=appName&lat=${latitude}&lon=${longitude}&dev=0&style=2`; } else { // 其他设备fallback到web版 mapUrl = `https://uri.amap.com/navigation?to=${longitude},${latitude},目的地&mode=car&callnative=1`; } // 尝试打开原生应用 window.location.href = mapUrl; // 设置一个超时,如果没能成功唤起应用,显示提示 const timeout = setTimeout(() => { // 如果页面仍然存在(没有跳转成功),则提示用户 uni.showModal({ title: '打开失败', content: '未能打开高德地图应用,请确保已安装高德地图或手动打开并输入坐标进行导航', confirmText: '复制坐标', success: (res) => { if (res.confirm) { uni.setClipboardData({ data: `${longitude},${latitude}`, success: function () { uni.showToast({ title: '坐标已复制', icon: 'none' }); } }); } } }); }, 2000); // 如果页面隐藏了(说明跳转成功),清除超时 document.addEventListener('visibilitychange', function() { if (document.hidden) { clearTimeout(timeout); } }); }
02-27 - 微信服务器向公众号推送消息或事件后,得到的回应不合法?返回格式都是正确的
[图片] 想请问一下这个返回哪里不合法了 格式都是正确的 用的是binarywang的返回message @PostMapping(produces = "application/xml; charset=UTF-8") public String post( @RequestBody String requestBody, @RequestParam("signature") String signature, @RequestParam("timestamp") String timestamp, @RequestParam("nonce") String nonce, @RequestParam("openid") String openid, @RequestParam(name = "encrypt_type", required = false) String encType, @RequestParam(name = "msg_signature", required = false) String msgSignature, HttpServletResponse response) { String appid = ""; log.info("\n接收微信请求:[openid=[{}], [signature=[{}], encType=[{}], msgSignature=[{}]," + " timestamp=[{}], nonce=[{}], requestBody=[\n{}\n] ", openid, signature, encType, msgSignature, timestamp, nonce, requestBody); if (!wxService.checkSignature(timestamp, nonce, signature)) { throw new IllegalArgumentException("非法请求,可能属于伪造的请求!"); } String out = null; if (encType == null) { // 明文传输的消息 WxMpXmlMessage inMessage = WxMpXmlMessage.fromXml(requestBody); WxMpXmlOutMessage outMessage = this.route(inMessage); if (outMessage == null) { return ""; } out = outMessage.toXml(); } else if ("aes".equalsIgnoreCase(encType)) { // aes加密的消息 WxMpXmlMessage inMessage = WxMpXmlMessage.fromEncryptedXml(requestBody, wxService.getWxMpConfigStorage(), timestamp, nonce, msgSignature); log.debug("\n消息解密后内容为:\n{} ", inMessage.toString()); WxMpXmlOutMessage outMessage = this.route(inMessage); if (outMessage == null) { return ""; } out = outMessage.toEncryptedXml(wxService.getWxMpConfigStorage()); } log.debug("\n组装回复信息:{}", out); response.setContentType(ContentType.XML.getValue()); return out; }
02-11 - 微信pc端表情包无法加载,公司网络问题?
公司网络限制了微信表情包,只有提前用其他网络加载好的表情包可以显示,有办法可以绕过公司网络限制么。下面的表情包都是我用我流量加载出来的,一切换成公司网络就没办法接收到新的表情包了 [图片]
2023-05-04 - 微信PC端卡顿黑屏
PC端微信 自从上线了小程序之后 就一直卡顿黑屏,提现在搜索框、点击图片、点击文章、点击头像、切换聊天窗口等多个地方,有没有什么办法可以关闭小程序组件?
2022-07-12