不管是app的下载链接还是普通文件的链接在微信内置浏览器或者QQ内置浏览器分享都会被拦截。这是腾讯对第三方下载域名实施的打压政策。被屏蔽了也就意味着链接在微信中是无法正常打开的,那么此时用户在微信内打开就会提示“已停止访问该网页”。那么我们遇到这个问题该怎么办呢。

首先我们要解决域名被拦截的阻碍,其次就是实现微信内直接下载app或打开指定页面的功能。下面给大家大概分析一下如何实现功能和实现后的效果。

首先我们需要对分享域名加JS防封接口,这需要对php代码进行处理,然后我们再加入浏览器外跳接口,以达到我们的期望需求。

案例展示:

到这里就基本解决了上述的问题,我们在微信中分享下载链接或二维码就不会出现无法打开或无法下载的现象了,这样我们就可以直接在微信内分享下载链接和二维码进行宣传引流,如此以来我们就能够极大的提高自己的APP在微信中的推广转化率,充分利用微信的用户群体来宣传引流。

<!DOCTYPE html>
<html>
<head><meta charset="utf-8" /><title>下载海玛特客户端</title><meta name="viewport" content="width=320.1, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"><meta content="telephone=no" name="format-detection" /><meta name="apple-mobile-web-app-capable" content="yes" /><!--link href="css/main.css" rel="stylesheet" type="text/css"--><style type="text/css">body {height: 100%;}.container {padding:0 20px;background-image: url(images/bg.jpg);background-position: center center;background-size: 100% 100%;height: 100%;}.dl-step {padding-top: 58px;}.dl-step .step {clear: both;}.dl-step .index {float: left;height: 36px;width: 36px;border: 2px solid #fff;background-color: #ffba26;border-radius: 50%;text-align: center;line-height: 36px;position: relative;background-clip: padding-box;color: #fff;}.dl-step .content {margin-left: 70px;border-radius: 4px;padding:8px 13px 13px;position: relative;}.dl-step-1 {margin-bottom: 60px;position: relative;}.dl-step-1 .content {background-color: #ffba26;box-shadow: 0 1px 2px rgba(0,0,0,0.5);font-size: 15px;color: #fff;padding: 0 13px;height: 38px;line-height: 38px;}.dl-step-1:before {content: "";display: block;width: 89px;height: 75px;position: absolute;right: 0;top: -56px;background-image: url(images/icons.png);background-size: auto 213px;background-repeat: no-repeat;background-position: 0 0;z-index: 10;}.dl-step-1 .index:before {content: "";display: block;height: 45px;width: 2px;background-color: #fff;position: absolute;top: 45px;left: 17px;border-radius: 2px;}.dl-step-2 {margin-bottom: 58px;}.dl-step-2 .index, .dl-step-3 .index {background-color: rgba(39,41,57,0.2);}.dl-step-2 .content, .dl-step-3 .content {background-color: rgba(255,255,255,0.9);box-shadow: 0 1px 2px rgba(0,0,0,0.3);}.dl-step-2 .content .tip, .dl-step-3 .content .tip {margin-bottom: 2px;font-size: 15px;color: #333;font-family: Microsoft Yahei;}.dl-step-2 .index:before {content: "";display: block;height: 128px;width: 2px;background-color: #fff;position: absolute;top: 45px;left: 17px;border-radius: 2px;}.dl-devices {overflow: hidden;}.dl-devices .item {background-color: #ceecfb;width: 49%;float: left;padding: 5px 0;}.dl-devices .android {margin-left: 1px;}.dl-devices .name {float: left;background-color: #fff;padding: 0 4px;color: #666;line-height: 14px;font-size: 12px;font-family: Microsoft Yahei;}.dl-devices .icon {height: 40px;clear: left;background-image: url(images/icons1.png);background-size: auto 213px;background-repeat: no-repeat;}.dl-devices .desc {color:#666;font-size: 10px;text-align: center;font-family: Microsoft Yahei;}.dl-devices .ios .icon {background-position: center -85px;}.dl-devices .android .icon {background-position: center -131px;}.dl-step-3 .app {background-color: #ceecfb;padding: 8px 25px;}.dl-step-3 .app .icon {padding-left: 38px;height:31px;line-height:31px;background-image: url(images/icons2.png);background-repeat: no-repeat;background-position: -29px -182px;background-size: auto 213px;font-size: 10px;color: #666;font-family: Microsoft Yahei;}.dl-step .content:before {content: "";display: block;height: 0;width: 0;border: 5px solid transparent;border-right-color: rgba(0,0,0,0.1);position: absolute;top: 14px;left: -11px;}.dl-step .content:after {content: "";display: block;height: 0;width: 0;border: 5px solid transparent;position: absolute;top: 13px;left: -10px;}.dl-step-1 .content:after {border-right-color: #ffba26;}.dl-step-2 .content:after, .dl-step-3 .content:after {border-right-color: rgba(255,255,255,0.9);}</style><script>/*首先判断是否是pc,若是pc访问则跳转到http://app.ctrip.com/*/var u = navigator.userAgent || '';var isPC = !/(iphone|ios|android|mini|mobile|mobi|Nokia|Symbian|iPod|iPad|Windows\s+Phone|MQQBrowser|wp7|wp8|UCBrowser7|UCWEB|360\s+Aphone\s+Browser)/i.test(u);if (isPC) { location.href = "http://www.hipermart.com.cn"; }</script><script src="js/require.min.js"></script><!--script type="text/javascript">var libs = 'libs_r_3.js';if (!('__proto__' in {})) {libs = 'libs_jq_r_1.1.js';}document.write('<script type="text/javascript" src="js/' + libs + '"></' + 'script>');</script--><!--script src="js/m.ctrip.com.core.min.js"></script--><script>var isPC = false;var e = navigator.userAgent ? navigator.userAgent.toLowerCase() : '';var iswx = /micromessenger/.test(e) ? !0 : !1;var wxurl = '';if (iswx) {wxurl = "http://mp.weixin.qq.com/mp/redirect?url=";}//    window.onload = function () { //修复图片偶尔不能加载function hello() { //修复图片偶尔不能加载var appUrl = "http://app.hipermart.com.cn:8888/apk/hipermart.apk";if (!isPC && !iswx) {if(appUrl){location.href = appUrl;}else if(sid){location.href = "/m/" + sid;}}}</script></head>
<body onload="hello()"><div class="container"><div class="dl-step"><div class="step dl-step-1"><div class="index">1</div><div class="content">点击右上方</div></div><div class="step dl-step-2"><div class="index">2</div><div class="content"><p class="tip">选择在浏览器中打开</p><div class="dl-devices"><!--div class="item ios"><span class="name">iOS</span><div class="icon"></div><p class="desc">在Safari中打开</p></div--><div class="item android"><span class="name">安卓</span><div class="icon"></div><p class="desc">在浏览器中打开</p></div></div></div></div><div class="step dl-step-3"><div class="index">3</div><div class="content"><p class="tip">即可自动下载APP</p><div class="app"><div class="icon">海玛特客户端</div></div></div></div></div></div></body>
</html>

微信里的apk链接打不开,怎么让微信的扫一扫扫描二维码后安装apk?相关推荐

  1. 怎么让微信的扫一扫扫描二维码后安装apk 苹果手机下载APP怎样扫描二维码实现下载功能

    二维码深入人心,很多App都在官网挂出了可以扫描下载apk的二维码,笔者所在公司的产品也不例外.一般二维码编码的URL不会直接放apk而是放中间地址,通过这个中间地址再跳转到apk所在URL,原因大概 ...

  2. 用微信扫一扫功能扫描二维码下载安装APK不能用,不能打开APK下载链接的解决方案

    使用微信推广的用户经常都会遇到推广链接被拦截导致无法下载app的情况,此时用户在微信中打开会提示" 已停止访问该网页 ".这对于使用微信营销的商家来说就很不友好且损失非常大,因为用 ...

  3. (4.3.1.11)微信扫描二维码无法下载apk文件解决办法

    最近客户网站扫描二维码下载apk的功能不能用了,客户反应扫描二维码后是一片空白,本以为是文件丢失,可是服务器上面文件位置都是正常的,后来才发现是因为腾讯屏蔽掉了外部文件的链接,经过几次不断的尝试,发现 ...

  4. 微信小程序获取扫描二维码后携带的参数

    微信小程序获取扫描二维码后携带的参数 1.decodeURIComponent解析生成二维码的链接. /*** 生命周期函数--监听页面加载*/onLoad: function(options) {i ...

  5. 解析:366API如何解决微信扫描二维码无法下载APK 的问题

    需求分析 现在微信分享二维码进行推广的方式已经成为大家常用且便捷的方法了.但是经常会有分享出去的链接或二维码都无法正常打开指定页面,提示"已停止访问网页",故导致无法下载app. ...

  6. JAVA生成二维码链接(扫描二维码后进行指定链接跳转)--全网最详细

    需要使用的依赖 <!-- https://mvnrepository.com/artifact/com.google.zxing/core --><dependency>< ...

  7. JAVA生成二维码链接(扫描二维码后进行指定链接跳转)

    1.需要用到的maven依赖 <!-- https://mvnrepository.com/artifact/com.google.zxing/core --><dependency ...

  8. 微信扫描二维码,跳转到第三方网页,并获取用户OpenId和基本信息

    扫描二维码后,通过微信网页授权机制,来获取用户基本信息,进而实现业务逻辑. 实现步骤: 1.确定回调URL,即扫描二维码,并通过微信授权后,需要跳转的后台URL地址,例如: http://xialti ...

  9. JAVA实现的微信扫描二维码支付

    支付项目采用springMvc+Dubbo架构实现,只对外提供接口. 话说,为什么微信支付比支付宝来的晚了那么一点,一句话,那一阵挺忙的,然后就没有时间整理,最近做完支付宝支付,顺便也把微信支付的也整 ...

最新文章

  1. 压缩感知的阶段性总结
  2. python必背100代码-100行Python代码实现一款高精度免费OCR工具
  3. Matlab 2015a 中 pointCloud类相关知识
  4. 智能指针的释放_手把手教你实现智能指针
  5. Socket请求获取数据
  6. cesium 获取圆形边界位置_Cesium中级教程4 – 空间数据可视化(二)
  7. 深度学习文本分类在支付宝投诉文本模型上的应用
  8. 字体选择_十分钟带你掌握精准选择字体的方法!
  9. Android安全之应用签名验证
  10. 2021了,你还不能玩转js正则表达式?
  11. 经典机器学习系列(六)【集成学习】之周志华西瓜书-AdaBoost算法证明解析
  12. Atitit. Attilax软件研发and开发之道 1. 基本语言 3 2. 标准化库api 3 3. Ied与代码编写 调试 3 4. ui 3 5. 通讯 3 6. 第三方库 3 7. 数据
  13. 谷歌在中国大陆停止谷歌翻译服务,Chrome “翻成中文”无法使用
  14. php的电阻率是多少,PTF65517KBT-10B14
  15. 第39级台阶--递归
  16. LBS服务LevelUp推二维码支付产品
  17. python 游戏大作_使用requests和beautifulsoup爬取3DM单机大作排行榜
  18. win10计算机右键属性打不开,Win10鼠标右键我的电脑打不开属性的解决方法教程[多图]...
  19. 关于JavaWeb JSP的思维导图
  20. 拷贝构造函数的三种使用情况

热门文章

  1. 2023届秋招提前批信息汇总(持续更新ing)
  2. 英雄联盟主播有哪些精彩操作值得看?
  3. STM32兴趣篇二:模拟汽车OBD接口处的CAN收发信号实验
  4. MFC-CView类总结
  5. pymssql连接sql server报错:pymssql._pymssql.OperationalError
  6. WC 2018 冬眠记
  7. Node.js 高级篇(六):手把手教你使用和理解 Multer 实现文件上传,包懂 O(∩_∩)O~
  8. 评:从决赛能看到什么?我个人认为.五年内周宇是五人的冠军!!
  9. SpringSecurity详细介绍RememberMe功能
  10. 致敬最美抗击疫情的逆行者 DIV布局大学生抗疫感动专题网页设计作业模板 疫情感动人物静态HTML网页模板下载