Authored by 张孝茹

singleApi 更改

... ... @@ -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 {
... ...
... ... @@ -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
});
}
... ...