|
|
@@ -45,7 +45,7 @@
|
|
|
<script type="text/javascript">
|
|
|
var ua = navigator.userAgent.toLocaleUpperCase().indexOf("WEIBO") >= 0;
|
|
|
alert(ua);
|
|
|
- if (!ua) {
|
|
|
+ if (ua) {
|
|
|
let url = "https://sina.shuncheng.lu/demo.html"; // 要打开的 H5 页面的地址
|
|
|
let scheme = `sinaweibo://browser?url=` + encodeURIComponent(url);
|
|
|
window.location.href = `https://m.weibo.cn/feature/openapp?scheme=` + encodeURIComponent(scheme);
|