Authored by ccbikai

add isApp

... ... @@ -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);
... ...