Browse Source

fix: 推荐商品接口支持空 dimensionCode 返回全量

Xiaogang Liao 1 month ago
parent
commit
53dd345efc

+ 0 - 3
cfc-backend/src/main/java/com/etotem/cfc/controller/recommendation/ProductRecommendationController.java

@@ -32,9 +32,6 @@ public class ProductRecommendationController {
             return Result.noFamily("请先创建或加入家庭");
         }
         String dimensionCode = (String) params.get("dimensionCode");
-        if (dimensionCode == null || dimensionCode.isEmpty()) {
-            return Result.error("dimensionCode不能为空");
-        }
 
         Object memberIdObj = params.get("memberId");
         Long memberId = memberIdObj != null ? toLong(memberIdObj) : null;