...
|
...
|
@@ -20,12 +20,10 @@ module.exports = () => { |
|
|
}
|
|
|
|
|
|
// app 特殊读法
|
|
|
if (!req.user.uid && req.yoho.isApp) {
|
|
|
let userAgent = _.get(req.headers, 'user-agent', '');
|
|
|
let userAgent = _.get(req.headers, 'user-agent', '');
|
|
|
|
|
|
if (userAgent.indexOf('YohoBuy') >= 0) {
|
|
|
req.user.uid = req.cookies._YOHOUID || 0;
|
|
|
}
|
|
|
if (!req.user.uid && userAgent.indexOf('YohoBuy') >= 0) {
|
|
|
req.user.uid = req.cookies._YOHOUID || 0;
|
|
|
}
|
|
|
|
|
|
next();
|
...
|
...
|
|