Showing
1 changed file
with
3 additions
and
1 deletions
@@ -97,7 +97,9 @@ const getPlatForm = (req) => { | @@ -97,7 +97,9 @@ const getPlatForm = (req) => { | ||
97 | let isNewVersion = false; | 97 | let isNewVersion = false; |
98 | const isProduction = process.env.NODE_ENV === 'production'; | 98 | const isProduction = process.env.NODE_ENV === 'production'; |
99 | 99 | ||
100 | - console.log(uids); | 100 | + console.log(req.get('User-Agent')); |
101 | + console.log(req.query.uid); | ||
102 | + | ||
101 | yoho.isiOS = /\(i[^;]+;( U;)? CPU.+Mac OS X/i.test(userAgent); | 103 | yoho.isiOS = /\(i[^;]+;( U;)? CPU.+Mac OS X/i.test(userAgent); |
102 | yoho.isAndroid = /Android/i.test(userAgent); | 104 | yoho.isAndroid = /Android/i.test(userAgent); |
103 | yoho.isApp = /YohoBuy/i.test(req.get('User-Agent')) || (req.query.app_version && req.query.client_type); | 105 | yoho.isApp = /YohoBuy/i.test(req.get('User-Agent')) || (req.query.app_version && req.query.client_type); |
-
Please register or login to post a comment