Showing
1 changed file
with
5 additions
and
1 deletions
@@ -75,11 +75,15 @@ const getDetailData = (req, res, next) => { | @@ -75,11 +75,15 @@ 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 (req.yoho.isApp) { | 78 | + if(uid) { |
79 | + if (isApp) { | ||
79 | uid = crypto.encryption('', req.query.uid + ''); | 80 | uid = crypto.encryption('', req.query.uid + ''); |
80 | } else { | 81 | } else { |
81 | uid = req.user.uid; | 82 | uid = req.user.uid; |
82 | } | 83 | } |
84 | + } | ||
85 | + | ||
86 | + console.log(uid) | ||
83 | 87 | ||
84 | if (clientType.toLowerCase() === 'ios' && version) { | 88 | if (clientType.toLowerCase() === 'ios' && version) { |
85 | clientType = 'iphone'; | 89 | clientType = 'iphone'; |
-
Please register or login to post a comment