Authored by yyq

登陆次数获取异常处理

... ... @@ -28,7 +28,10 @@ let siteUrl = config.siteUrl.indexOf('//') === 0 ? 'http:' + config.siteUrl : co
function getLoginStat(ip) {
let errorLoginKey = 'loginErrorIp:' + ip;
return cache.get(errorLoginKey);
return cache.get(errorLoginKey).catch(e => {
logger.error('call the memcache service fail,', e);
return 0;
});
}
// 本地登录
... ...
... ... @@ -95,6 +95,7 @@ const _handelGlobalSort = (origin, params, originParams) => {
};
if (equalCategory) {
category.active = true;
Object.assign(selectSort, {
name: value.category_name,
params: value.relation_parameter
... ...