Authored by 郝肖肖

Merge branch 'release/6.4' of git.yoho.cn:fe/yohobuywap-node into release/6.4

... ... @@ -58,7 +58,6 @@ module.exports = class extends global.yoho.BaseModel {
method: 'app.favorite.getFavoriteCount',
uid: params.uid
},
api: global.yoho.SingleAPI,
param: {code: 200}
});
} else {
... ... @@ -286,10 +285,11 @@ module.exports = class extends global.yoho.BaseModel {
if (uid) {
return this.get({
data: {
method: 'app.browse.product',
method: 'app.browse.pagelist',
uid: uid,
limit: limit,
page: page
page: page,
category_id: 0
},
param: {code: 200}
}).then((result) => {
... ... @@ -307,10 +307,6 @@ module.exports = class extends global.yoho.BaseModel {
return resu;
}
if (page > result.data.page_total) {
return [];
}
if (list.data && list.data.product_list) {
resu = {
browseRecord: []
... ...
... ... @@ -81,8 +81,7 @@ class newHome extends global.yoho.BaseModel {
},
param: {
code: 200
},
api: global.yoho.SingleAPI
}
};
return this.get(options);
... ...
... ... @@ -10,7 +10,6 @@ const _ = require('lodash');
const comment = require('./consult-comment');
const bundle = require('./bundle');
const api = global.yoho.API;
const singleAPI = global.yoho.SingleAPI;
const helpers = global.yoho.helpers;
const productProcess = require(`${utils}/product-process`);
... ... @@ -194,8 +193,7 @@ module.exports = class extends global.yoho.BaseModel {
method: 'app.favorite.isFavoriteNew',
uid: uid,
id: productId
},
api: singleAPI
}
}).then((result) => {
if (result && result.code === 200) {
return result.data;
... ...
... ... @@ -239,8 +239,7 @@ module.exports = class extends global.yoho.BaseModel {
return this.get({
url: 'favorite',
data: finalParams,
api: global.yoho.SingleAPI
data: finalParams
});
}
... ...