...
|
...
|
@@ -12,6 +12,7 @@ const isApp = /yohobuy/i.test(u) || |
|
|
|
|
|
const isiOS = /(iPhone|iPad|iPod|iOS)/i.test(u); // ios终端
|
|
|
const isAndroid = /Android/i.test(u); // android终端
|
|
|
const isWechatDevtool = /wechatdevtools/i.test(u); // 微信开发者工具
|
|
|
|
|
|
// const iOSVersion = parseInt((u.match(/OS (\d+)_(\d+)_?(\d+)?/i) || [])[1], 10); // iOS 版本
|
|
|
|
...
|
...
|
@@ -47,7 +48,7 @@ const getMktcBySeo = function() { |
|
|
};
|
|
|
|
|
|
const canOpenApp = () => {
|
|
|
if (isApp || isFromYOHO || nodownload || qs.nodownload || qs.no_openapp || blackCheck) {
|
|
|
if (isWechatDevtool || isApp || isFromYOHO || nodownload || qs.nodownload || qs.no_openapp || blackCheck) {
|
|
|
return false;
|
|
|
}
|
|
|
return isAndroid || isiOS || qs.openapp;
|
...
|
...
|
|