Authored by 郭成尧

'去掉部分logger'

... ... @@ -7,7 +7,6 @@
'use strict';
const brandApi = require('./brand-api');
const logger = global.yoho.logger;
const _ = require('lodash');
const camelCase = global.yoho.camelCase;
... ... @@ -57,8 +56,6 @@ const getBrandListData = params => {
return brandApi.getBrandListOriginData(params).then(result => {
if (result.data) {
Object.assign(finalResult, handleBrandList(result.data.all_list));
} else {
logger.error('getBrandListOriginData api data is null');
}
return finalResult;
... ...
... ... @@ -6,7 +6,6 @@
*/
'use strict';
const logger = global.yoho.logger;
const editorialListApi = require('./list-api');
const camelCase = global.yoho.camelCase;
... ... @@ -27,8 +26,6 @@ const editorialList = params => {
},
code: 200
});
} else {
logger.error('getEitorialListData api no data');
}
return camelCase(finalResult);
... ...
... ... @@ -66,14 +66,10 @@ const getShopData = params => {
});
}
});
} else {
logger.error('getShopsDecoratorList api no data');
}
return finalResult;
});
} else {
logger.error('getShopInfoData api no data');
}
return finalResult;
});
... ... @@ -87,8 +83,6 @@ const getShopData = params => {
logger.info('brand has no shop');
}
return finalResult;
} else {
logger.error('getBrandInfoByDomain api no data');
}
return finalResult;
... ... @@ -121,13 +115,9 @@ const getBrandShopGoodsData = params => {
},
code: 200
};
} else {
logger.error('getBrandShopGoodsOriginData api no data');
}
return camelCase(finalResult);
});
} else {
logger.error('getBrandInfoByDomain api no data');
}
return camelCase(finalResult);
});
... ...