...
|
...
|
@@ -5,7 +5,7 @@ const sign = require(`${library}/sign`); |
|
|
const api = new API();
|
|
|
const serviceAPI = new ServiceAPI();
|
|
|
|
|
|
module.exports.getUidProductFavAsync = function(uid, pid, isUrl) {
|
|
|
module.exports.getUidProductFavAsync = function (uid, pid, isUrl) {
|
|
|
isUrl;
|
|
|
return api.get('', sign.apiSign({
|
|
|
method: 'app.favorite.isFavorite',
|
...
|
...
|
@@ -15,9 +15,16 @@ module.exports.getUidProductFavAsync = function(uid, pid, isUrl) { |
|
|
}));
|
|
|
};
|
|
|
|
|
|
module.exports.isFavoriteBrandAsync = function(uid, bid) {
|
|
|
module.exports.isFavoriteBrandAsync = function (uid, bid) {
|
|
|
return serviceAPI.get('shops/service/v1/favorite/getUidBrandFav', sign.apiSign({
|
|
|
uid: uid,
|
|
|
brandId: bid
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
module.exports.changeFavoriteBrandAsync = function (uid, brandId) {
|
|
|
return serviceAPI.get('guang/service/v2/favorite/toggleBrand', sign.apiSign({
|
|
|
uid: uid,
|
|
|
brand_id: brandId
|
|
|
})).catch(console.log);
|
|
|
}; |
...
|
...
|
|