丁云鹏 1 yıl önce
ebeveyn
işleme
24e23bc79a

+ 2 - 14
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/common/enums/AppTypeEnum.java

@@ -50,10 +50,10 @@ public enum AppTypeEnum {
     ADMIN_CRAWLER(888888, "后台-爬虫"),
     OTHERS(999999, "其他的调用方,比如后台管理系统");
 
-    private Integer code;
+    private int code;
     private String desc;
 
-    public Integer getCode() {
+    public int getCode() {
         return code;
     }
 
@@ -65,16 +65,4 @@ public enum AppTypeEnum {
         this.code = code;
         this.desc = desc;
     }
-
-    public static AppTypeEnum valueOf(Integer code) {
-        if (code == null) {
-            return null;
-        }
-        for (AppTypeEnum appTypeEnum : AppTypeEnum.values()) {
-            if (appTypeEnum.getCode().intValue() == code.intValue()) {
-                return appTypeEnum;
-            }
-        }
-        return null;
-    }
 }

+ 0 - 1
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/service/filter/strategy/AllowListStrategy.java

@@ -81,7 +81,6 @@ public class AllowListStrategy implements FilterStrategy {
                 }
             }
         } else if (param.getAppType() == AppTypeEnum.WAN_NENG_VIDEO.getCode()
-                || param.getAppType() == AppTypeEnum.LAO_HAO_KAN_VIDEO.getCode()
                 || param.getAppType() == AppTypeEnum.ZUI_JING_QI.getCode()
                 || param.getAppType() == AppTypeEnum.H5.getCode()) {
             Iterator<Long> iterator = param.getVideoIds().iterator();