Showing
1 changed file
with
2 additions
and
1 deletions
@@ -12,6 +12,7 @@ const isApp = /yohobuy/i.test(u) || | @@ -12,6 +12,7 @@ const isApp = /yohobuy/i.test(u) || | ||
12 | 12 | ||
13 | const isiOS = /(iPhone|iPad|iPod|iOS)/i.test(u); // ios终端 | 13 | const isiOS = /(iPhone|iPad|iPod|iOS)/i.test(u); // ios终端 |
14 | const isAndroid = /Android/i.test(u); // android终端 | 14 | const isAndroid = /Android/i.test(u); // android终端 |
15 | +const isWechatDevtool = /wechatdevtools/i.test(u); // 微信开发者工具 | ||
15 | 16 | ||
16 | // const iOSVersion = parseInt((u.match(/OS (\d+)_(\d+)_?(\d+)?/i) || [])[1], 10); // iOS 版本 | 17 | // const iOSVersion = parseInt((u.match(/OS (\d+)_(\d+)_?(\d+)?/i) || [])[1], 10); // iOS 版本 |
17 | 18 | ||
@@ -47,7 +48,7 @@ const getMktcBySeo = function() { | @@ -47,7 +48,7 @@ const getMktcBySeo = function() { | ||
47 | }; | 48 | }; |
48 | 49 | ||
49 | const canOpenApp = () => { | 50 | const canOpenApp = () => { |
50 | - if (isApp || isFromYOHO || nodownload || qs.nodownload || qs.no_openapp || blackCheck) { | 51 | + if (isWechatDevtool || isApp || isFromYOHO || nodownload || qs.nodownload || qs.no_openapp || blackCheck) { |
51 | return false; | 52 | return false; |
52 | } | 53 | } |
53 | return isAndroid || isiOS || qs.openapp; | 54 | return isAndroid || isiOS || qs.openapp; |
-
Please register or login to post a comment