Authored by htoooth

fix

... ... @@ -34,7 +34,7 @@ module.exports = class extends global.yoho.BaseModel {
data: {
brandId: bid,
type: 'brand',
method: 'app.favorite.queryFavoriteCountByBrandId',
method: 'app.favorite.queryFavoriteCountByBrandId'
},
url: '/favorite',
api: global.yoho.SingleAPI
... ...
... ... @@ -24,7 +24,7 @@ module.exports = class extends global.yoho.BaseModel {
default:
return Promise.reject('favorite brand error');
}
};
}
getShopFavNumAsync(sid) {
return this.api.getShopFavNumAsync(sid).then((result) => {
... ... @@ -42,7 +42,7 @@ module.exports = class extends global.yoho.BaseModel {
};
}
});
};
}
getBrandFavNumAsync(bid) {
return this.api.getBrandIdNumAsync(bid).then((result) => {
... ... @@ -60,7 +60,7 @@ module.exports = class extends global.yoho.BaseModel {
};
}
});
};
}
};
... ...