Authored by 郭成尧

Merge remote-tracking branch 'remotes/origin/develop' into feature/brand

... ... @@ -21,7 +21,7 @@ module.exports = () => {
yoho.channel = channel;
// 判断请求是否来自app
yoho.isApp = req.query.app_version || req.query.appVersion;
yoho.isApp = /yh_blk/i.test(req.get('Referer'));
Object.assign(res.locals, yoho);
Object.assign(req.yoho, yoho);
... ...
... ... @@ -21,7 +21,7 @@ const yoho = {
/**
* 判断是否是 APP
*/
isApp: /yh_blk/i.test((navigator.userAgent || '').toLowerCase()),
isApp: /yh_blk/i.test(navigator.userAgent || ''),
/**
* JS 与 APP 共享的对象
... ...