...
|
...
|
@@ -102,6 +102,9 @@ public class FavoriteServiceImpl implements IFavoriteService { |
|
|
* 查询某用户是否已收藏某商品 (如果存在则将失效时间延期)
|
|
|
*/
|
|
|
public boolean isFavorite(FavoriteRequestVO vo){
|
|
|
if (vo.getUid() == null || 0 == vo.getUid()) { //
|
|
|
return false;
|
|
|
}
|
|
|
try {
|
|
|
boolean existFlag = cacheService.isExistUserProductFavoriteByProductId(vo.getUid(), vo.getProductId(),false);
|
|
|
if (existFlag) {
|
...
|
...
|
|