|
@@ -21,7 +21,10 @@ const commentAPI = require('./detail-comment-api'); |
|
@@ -21,7 +21,10 @@ const commentAPI = require('./detail-comment-api'); |
21
|
const consultAPI = require('./detail-consult-api');
|
21
|
const consultAPI = require('./detail-consult-api');
|
22
|
const hotAreaAPI = require('./detail-hotarea-api');
|
22
|
const hotAreaAPI = require('./detail-hotarea-api');
|
23
|
const brandAPI = require('./brand-api');
|
23
|
const brandAPI = require('./brand-api');
|
24
|
-const favoriteBrandService = require('./favorite-service');
|
24
|
+
|
|
|
25
|
+const favoriteBrandService = require('./favorite-brand-service');
|
|
|
26
|
+const favoriteProductService = require('./favorite-product-service');
|
|
|
27
|
+
|
25
|
const shopAPI = require('./shop-api');
|
28
|
const shopAPI = require('./shop-api');
|
26
|
const searchAPI = require('./search-api');
|
29
|
const searchAPI = require('./search-api');
|
27
|
const homeHandle = require('./home-handle');
|
30
|
const homeHandle = require('./home-handle');
|
|
@@ -65,7 +68,7 @@ const setMultiResourceByProductBaseInfo = (data) => { |
|
@@ -65,7 +68,7 @@ const setMultiResourceByProductBaseInfo = (data) => { |
65
|
|
68
|
|
66
|
if (uid) {
|
69
|
if (uid) {
|
67
|
multiResourcesUrl['FavoriteData::getUidProductFav'] =
|
70
|
multiResourcesUrl['FavoriteData::getUidProductFav'] =
|
68
|
- yield favoriteBrandService.getUidProductFavAsync(uid, productId, isOnlyUrl);
|
71
|
+ yield favoriteProductService.getUidProductFavAsync(uid, productId, isOnlyUrl);
|
69
|
}
|
72
|
}
|
70
|
})();
|
73
|
})();
|
71
|
};
|
74
|
};
|
|
@@ -91,7 +94,7 @@ const getProductFavoriteData = (uid, pid, bid) => { |
|
@@ -91,7 +94,7 @@ const getProductFavoriteData = (uid, pid, bid) => { |
91
|
let productData = getMultiDataByResourceName('FavoriteData::getUidProductFav');
|
94
|
let productData = getMultiDataByResourceName('FavoriteData::getUidProductFav');
|
92
|
|
95
|
|
93
|
if (!productData) {
|
96
|
if (!productData) {
|
94
|
- productData = yield favoriteBrandService.getUidProductFavAsync(uid, pid);
|
97
|
+ productData = yield favoriteProductService.getUidProductFavAsync(uid, pid);
|
95
|
}
|
98
|
}
|
96
|
result.product = productData.code === 200 && productData.data ? true : false;
|
99
|
result.product = productData.code === 200 && productData.data ? true : false;
|
97
|
}
|
100
|
}
|