...
|
...
|
@@ -462,20 +462,6 @@ export function cancelFavorite() { |
|
|
});
|
|
|
})
|
|
|
.catch(error => {
|
|
|
ReactNative.NativeModules.YH_CommonHelper.login()
|
|
|
.then(uid => {
|
|
|
return new BrandStoreService().cancelFavorite(shopId, shopId, uid)
|
|
|
.then(json => {
|
|
|
console.log('取消收藏成功');
|
|
|
dispatch(cancelFavoriteSuccess());
|
|
|
})
|
|
|
.catch(error => {
|
|
|
console.log(error);
|
|
|
dispatch(cancelFavoriteFailure(error));
|
|
|
});
|
|
|
})
|
|
|
.catch(error => {
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
} |
...
|
...
|
|