日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

微信中域名链接被封如何解决

發布時間:2023/12/14 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 微信中域名链接被封如何解决 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

常使用微信分享網頁鏈接的朋友可能都會經常碰到打開后提示 “已停止訪問該網頁” 的情況,遇到這種情況的時候,很多人不知道怎么辦,其實做到微信內打開網頁自動喚醒手機默認瀏覽器打開就能解決問題了。
平臺地址http://www.fishtool.cn/

代碼
下面是全部代碼,已經做了安卓和IOS的適配。需要替換其中要跳轉的網址,然后保存為php文件,在微信內訪問即可實現自動跳轉:

<?php<?php error_reporting(0);if($_GET['open']==1 && strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger')!==false){header("Content-Disposition: attachment; filename=\"load.doc\""); header("Content-Type: application/vnd.ms-word;charset=utf-8");}?> <!DOCTYPE html><html><head><meta charset="UTF-8"><title>Welcome</title><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"/> <meta content="yes" name="apple-mobile-web-app-capable"/> <meta content="black" name="apple-mobile-web-app-status-bar-style"/> <meta name="format-detection" content="telephone=no"/> <meta content="false" name="twcClient" id="twcClient"/> <style>body,html{width:100%;height:100%}*{margin:0;padding:0}body{background-color:#fff}.top-bar-guidance{font-size:15px;color:#fff;height:40%;line-height:1.8;padding-left:20px;padding-top:20px;background:url(//gw.alicdn.com/tfs/TB1eSZaNFXXXXb.XXXXXXXXXXXX-750-234.png) center top/contain no-repeat}.top-bar-guidance .icon-safari{width:25px;height:25px;vertical-align:middle;margin:0 .2em}.app-download-btn{display:block;width:214px;height:40px;line-height:40px;margin:18px auto 0 auto;text-align:center;font-size:18px;color:#2466f4;border-radius:20px;border:.5px #2466f4 solid;text-decoration:none} </style> </head> <body> <div class="top-bar-guidance"><p>點擊右上角<img src="//gw.alicdn.com/tfs/TB1xwiUNpXXXXaIXXXXXXXXXXXX-55-55.png" class="icon-safari"/> Safari打開</p><p>可以繼續訪問本站哦~</p></div><a class="app-download-btn" id="BtnClick" href="javascript:;"> 點此繼續訪問 </a><script>var url = 'http://www.fishtool.cn';//更改需要跳轉的地址document.querySelector('body').addEventListener('touchmove', function (event) {event.preventDefault();});window.mobileUtil = (function(win, doc) {var UA = navigator.userAgent,isAndroid = /android|adr/gi.test(UA),isIOS = /iphone|ipod|ipad/gi.test(UA) && !isAndroid,isBlackBerry = /BlackBerry/i.test(UA),isWindowPhone = /IEMobile/i.test(UA),isMobile = isAndroid || isIOS || isBlackBerry || isWindowPhone;return {isAndroid: isAndroid,isIOS: isIOS,isMobile: isMobile,isWeixin: /MicroMessenger/gi.test(UA),isQQ: /QQ/gi.test(UA)};})(window, document);if(mobileUtil.isWeixin){if(mobileUtil.isIOS){url = "http://www.fishtool.cn?backurl=" + encodeURIComponent(url);document.getElementById('BtnClick').href=url;}else if(mobileUtil.isAndroid){url = '?open=1';document.getElementById('BtnClick').href=url;var iframe = document.createElement("iframe");iframe.style.display = "none";iframe.src = url;document.body.appendChild(iframe);}}else{document.getElementById('BtnClick').href=url;window.location.replace(url);}//setTimeout('WeixinJSBridge.invoke("closeWindow", {}, function(e) {})', 2000); </script></body></html>

效果圖:

總結

以上是生活随笔為你收集整理的微信中域名链接被封如何解决的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。