...
|
...
|
@@ -8,12 +8,23 @@ const api = global.yoho.API; |
|
|
const favApi = global.yoho.FavAPI;
|
|
|
|
|
|
const isFavoriteAsync = (uid, pid) => {
|
|
|
let onNewApi = false;
|
|
|
|
|
|
if(onNewApi){
|
|
|
return favApi.get('', {
|
|
|
method: 'app.favorite.isFavoriteNew',
|
|
|
id: pid,
|
|
|
uid: uid,
|
|
|
type: 'product'
|
|
|
});
|
|
|
} else {
|
|
|
return api.get('', {
|
|
|
method: 'app.favorite.isFavorite',
|
|
|
id: pid,
|
|
|
uid: uid,
|
|
|
type: 'product'
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
const createAsync = (uid, pid) => {
|
...
|
...
|
|