...
|
...
|
@@ -5,7 +5,7 @@ const logger = global.yoho.logger; |
|
|
const utils = '../../../utils';
|
|
|
const productProcess = require(`${utils}/product-process`);
|
|
|
|
|
|
const mayLike = (uid, page, limit, gender, udid, recPos, channel) => {
|
|
|
const mayLike = (uid, page, limit, gender, udid, recPos, channel, clientId) => {
|
|
|
return api.get('', {
|
|
|
method: 'app.search.newLast7day',
|
|
|
uid: uid,
|
...
|
...
|
@@ -14,7 +14,8 @@ const mayLike = (uid, page, limit, gender, udid, recPos, channel) => { |
|
|
udid: udid,
|
|
|
rec_pos: recPos,
|
|
|
yh_channel: channel,
|
|
|
gender: gender
|
|
|
gender: gender,
|
|
|
client_id: clientId
|
|
|
}).then((result) => {
|
|
|
|
|
|
if (result && result.code === 200) {
|
...
|
...
|
@@ -59,7 +60,7 @@ const mayLikeKids = (page, limit, channel) => { |
|
|
});
|
|
|
};
|
|
|
|
|
|
const mayLikelife = (page, limit, channel) => {
|
|
|
const mayLikelife = (page, limit) => {
|
|
|
return api.get('', {
|
|
|
method: 'app.search.lifeStyle',
|
|
|
page: page,
|
...
|
...
|
@@ -78,7 +79,7 @@ const mayLikelife = (page, limit, channel) => { |
|
|
|
|
|
build.goods = productProcess.processProductList(result.data.product_list.top, {showTags: false});
|
|
|
|
|
|
formData.goodsContainer.push(build);
|
|
|
formData.goodsContainer.push(build);
|
|
|
}
|
|
|
|
|
|
if (result.data.product_list.top) {
|
...
|
...
|
@@ -90,8 +91,8 @@ const mayLikelife = (page, limit, channel) => { |
|
|
|
|
|
formData.goodsContainer.push(build);
|
|
|
}
|
|
|
// console.log(formData)
|
|
|
return formData;
|
|
|
|
|
|
return formData;
|
|
|
|
|
|
} else {
|
|
|
logger.error('mayLikelife code no 200');
|
...
|
...
|
|