Showing
2 changed files
with
9 additions
and
11 deletions
@@ -75,7 +75,7 @@ const getDetailData = (req, res, next) => { | @@ -75,7 +75,7 @@ const getDetailData = (req, res, next) => { | ||
75 | let userAgent = req.get('User-Agent'); | 75 | let userAgent = req.get('User-Agent'); |
76 | let isWeixin = userAgent.includes('MicroMessenger'); // 标识是否是微信访问 | 76 | let isWeixin = userAgent.includes('MicroMessenger'); // 标识是否是微信访问 |
77 | 77 | ||
78 | - if(uid) { | 78 | + if (uid) { |
79 | if (isApp) { | 79 | if (isApp) { |
80 | uid = crypto.encryption('', req.query.uid + ''); | 80 | uid = crypto.encryption('', req.query.uid + ''); |
81 | } else { | 81 | } else { |
@@ -83,8 +83,6 @@ const getDetailData = (req, res, next) => { | @@ -83,8 +83,6 @@ const getDetailData = (req, res, next) => { | ||
83 | } | 83 | } |
84 | } | 84 | } |
85 | 85 | ||
86 | - console.log(uid) | ||
87 | - | ||
88 | if (clientType.toLowerCase() === 'ios' && version) { | 86 | if (clientType.toLowerCase() === 'ios' && version) { |
89 | clientType = 'iphone'; | 87 | clientType = 'iphone'; |
90 | } else if (clientType.toLowerCase() === 'android' && version) { | 88 | } else if (clientType.toLowerCase() === 'android' && version) { |
@@ -16,15 +16,15 @@ module.exports = { | @@ -16,15 +16,15 @@ module.exports = { | ||
16 | siteUrl: '//m.yohobuy.com', | 16 | siteUrl: '//m.yohobuy.com', |
17 | assetUrl: '//localhost:5001', | 17 | assetUrl: '//localhost:5001', |
18 | domains: { | 18 | domains: { |
19 | - api: 'http://api-test3.yohops.com:9999/', | ||
20 | - service: 'http://service-test3.yohops.com:9999/', | ||
21 | - liveApi: 'http://testapi.live.yohops.com:9999/', | ||
22 | - singleApi: 'http://api-test3.yohops.com:9999/' | 19 | + // api: 'http://api-test3.yohops.com:9999/', |
20 | + // service: 'http://service-test3.yohops.com:9999/', | ||
21 | + // liveApi: 'http://testapi.live.yohops.com:9999/', | ||
22 | + // singleApi: 'http://api-test3.yohops.com:9999/' | ||
23 | 23 | ||
24 | - // api: 'http://api.yoho.cn/', | ||
25 | - // service: 'http://service.yoho.cn/', | ||
26 | - // liveApi: 'http://api.live.yoho.cn/', | ||
27 | - // singleApi: 'http://single.yoho.cn/' | 24 | + api: 'http://api.yoho.cn/', |
25 | + service: 'http://service.yoho.cn/', | ||
26 | + liveApi: 'http://api.live.yoho.cn/', | ||
27 | + singleApi: 'http://single.yoho.cn/' | ||
28 | }, | 28 | }, |
29 | subDomains: { | 29 | subDomains: { |
30 | host: '.m.yohobuy.com', | 30 | host: '.m.yohobuy.com', |
-
Please register or login to post a comment