Authored by htoooth

fix

... ... @@ -17,27 +17,13 @@ module.exports = class extends global.yoho.BaseModel {
}
isFavoriteAsync(uid, pid) {
let onNewApi = false;
if (onNewApi) {
return this.get({
data: {
method: 'app.favorite.isFavoriteNew',
id: pid,
uid: uid,
type: 'product'
},
api: global.yoho.FavAPI
});
} else {
return this.get({
data: {
method: 'app.favorite.isFavorite',
id: pid,
uid: uid,
type: 'product'
}
});
}
return this.get({
data: {
method: 'app.favorite.isFavorite',
id: pid,
uid: uid,
type: 'product'
}
});
}
};
... ...