Authored by 陈峰

fix issue

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