Authored by 郭成尧

'viphref'

... ... @@ -300,6 +300,11 @@ exports.getSaleOthersData = (params, channel) => {
// 获取焦点图数据
if (result[2].code === 200) {
finalResult.topBanner = saleHandler.handleSaleBannerData(result[2].data);
if (params.saleType !== '2') {
_.forEach(finalResult.topBanner.list, (value,key) => {
delete finalResult.topBanner.list[key].href;
});
}
} else {
logger.error('content code api code no 200');
}
... ... @@ -357,7 +362,7 @@ exports.getSaleOthersData = (params, channel) => {
logger.error('user api code no 200 or no vip category');
}
} else {
logger.error('no user info get from api');
logger.info('no user info get from api');
}
return finalResult;
... ... @@ -450,6 +455,9 @@ exports.getSalebreakingYardsData = (params, channel) => {
// 处理 banner 数据
if (result[1].code === 200) {
finalResult.topBanner = saleHandler.handleSaleBannerData(result[1].data);
_.forEach(finalResult.topBanner.list, (value,key) => {
delete finalResult.topBanner.list[key].href;
});
} else {
logger.error('content code api code no 200');
}
... ...