Authored by 郭成尧

Merge branch 'hotfix/useruid' into release/6.5.3

... ... @@ -103,10 +103,9 @@ app.use((req, res, next) => {
req.yoho.isMarsApp = /yohomars/i.test(req.get('User-Agent') || '');
req.yoho.isYohoApp = /YohoBuy/i.test(req.get('User-Agent') || '');
req.yoho.isApp = req.yoho.isMiniApp ||
req.yoho.isMarsApp ||
req.cookies.app_version ||
req.yoho.isNowApp ||
/YohoBuy/i.test(req.get('User-Agent') || '') ||
req.yoho.isMarsApp ||
req.yoho.isYohoApp ||
(req.query.app_version && req.query.app_version !== 'false') ||
(req.query.appVersion && req.query.appVersion !== 'false');
... ...
... ... @@ -43,7 +43,7 @@ yoho = {
isApp: /YohoMars/i.test(navigator.userAgent || '') ||
/YohoBuy/i.test(navigator.userAgent || '') ||
/yohonow/i.test(navigator.userAgent || '') ||
qs && qs.app_version || cookie.get('app_version'),
qs && qs.app_version,
isiOS: /\(i[^;]+;( U;)? CPU.+Mac OS X/i.test(navigator.userAgent || ''),
isAndroid: /Android/i.test(navigator.userAgent || ''),
isWechat: /micromessenger/i.test(navigator.userAgent || ''),
... ...