...
|
...
|
@@ -21,7 +21,10 @@ const commentAPI = require('./detail-comment-api'); |
|
|
const consultAPI = require('./detail-consult-api');
|
|
|
const hotAreaAPI = require('./detail-hotarea-api');
|
|
|
const brandAPI = require('./brand-api');
|
|
|
const favoriteBrandService = require('./favorite-service');
|
|
|
|
|
|
const favoriteBrandService = require('./favorite-brand-service');
|
|
|
const favoriteProductService = require('./favorite-product-service');
|
|
|
|
|
|
const shopAPI = require('./shop-api');
|
|
|
const searchAPI = require('./search-api');
|
|
|
const homeHandle = require('./home-handle');
|
...
|
...
|
@@ -65,7 +68,7 @@ const setMultiResourceByProductBaseInfo = (data) => { |
|
|
|
|
|
if (uid) {
|
|
|
multiResourcesUrl['FavoriteData::getUidProductFav'] =
|
|
|
yield favoriteBrandService.getUidProductFavAsync(uid, productId, isOnlyUrl);
|
|
|
yield favoriteProductService.getUidProductFavAsync(uid, productId, isOnlyUrl);
|
|
|
}
|
|
|
})();
|
|
|
};
|
...
|
...
|
@@ -91,7 +94,7 @@ const getProductFavoriteData = (uid, pid, bid) => { |
|
|
let productData = getMultiDataByResourceName('FavoriteData::getUidProductFav');
|
|
|
|
|
|
if (!productData) {
|
|
|
productData = yield favoriteBrandService.getUidProductFavAsync(uid, pid);
|
|
|
productData = yield favoriteProductService.getUidProductFavAsync(uid, pid);
|
|
|
}
|
|
|
result.product = productData.code === 200 && productData.data ? true : false;
|
|
|
}
|
...
|
...
|
|