Authored by 陈峰

Merge branch 'feature/wkwebview' into 'release/6.8.8'

fix issue



See merge request !31
... ... @@ -84,8 +84,9 @@ const handlerError = (err = {}, req, res, next) => {
};
const getCacheKey = (req, cacheKey = '') => {
const isYohoProtocol = _.get(req.app.locals.wap, `webapp.${config.appName}-yoho-protocol`, false);
const urlObj = url.parse(req.url);
const yohoProtocol = req.get('User-Agent').indexOf('yoho-protocol') >= 0 ? 'yoho-protocol' : '';
const yohoProtocol = (req.get('User-Agent').indexOf('yoho-protocol') >= 0 && isYohoProtocol) ? 'yoho-protocol' : '';
return md5(cacheKey
.replace('$url', urlObj.pathname)
... ...