...
|
...
|
@@ -48,18 +48,11 @@ const _formatProduct = (data) => { |
|
|
};
|
|
|
|
|
|
module.exports = (data) => {
|
|
|
let finalResult = {};
|
|
|
|
|
|
return api.get('', {
|
|
|
method: 'h5.preference.Search',
|
|
|
productskn: data.productskn,
|
|
|
yhchannel: yhchannelMap[data.yhchannel],
|
|
|
brandId: data.brandId
|
|
|
method: 'app.product.preference',
|
|
|
product_skn: data.productskn,
|
|
|
limit: data.limit || '20'
|
|
|
}).then(result => {
|
|
|
if (result) {
|
|
|
finalResult.recommendList = _formatProduct(result);
|
|
|
}
|
|
|
|
|
|
return finalResult;
|
|
|
return result;
|
|
|
});
|
|
|
}; |
...
|
...
|
|