From 56481656c7de11cdca69c1a7dd69db176ffd9ecd Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 08 五月 2021 12:49:30 +0800 Subject: [PATCH] 华为屏蔽金币任务中的看海量视频,新增广告平台概率控制 --- src/main/java/com/yeshi/buwan/util/video/VideoConstant.java | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/yeshi/buwan/util/video/VideoConstant.java b/src/main/java/com/yeshi/buwan/util/video/VideoConstant.java index 337296f..1cf3751 100644 --- a/src/main/java/com/yeshi/buwan/util/video/VideoConstant.java +++ b/src/main/java/com/yeshi/buwan/util/video/VideoConstant.java @@ -1,11 +1,17 @@ package com.yeshi.buwan.util.video; +import java.util.Arrays; +import java.util.List; + public class VideoConstant { + + public final static int VIDEO_CATEGORY_DIANYING = 151; public final static int VIDEO_CATEGORY_DIANSHIJU = 150; public final static int VIDEO_CATEGORY_DONGMAN = 153; public final static int VIDEO_CATEGORY_ZONGYI = 152; + public final static int VIDEO_CATEGORY_JILUPIAN = 313; /** * 鏄惁涓轰富瑕佸垎绫� @@ -22,7 +28,23 @@ return true; if (id == VIDEO_CATEGORY_ZONGYI) return true; + if (id == VIDEO_CATEGORY_JILUPIAN) + return true; return false; } + public static String getMainCategoryName(long id) { + if (id == VIDEO_CATEGORY_DIANSHIJU) + return "鐢佃鍓�"; + if (id == VIDEO_CATEGORY_DIANYING) + return "鐢靛奖"; + if (id == VIDEO_CATEGORY_DONGMAN) + return "鍔ㄦ极"; + if (id == VIDEO_CATEGORY_ZONGYI) + return "缁艰壓"; + if (id == VIDEO_CATEGORY_JILUPIAN) + return "绾綍鐗�"; + return ""; + } + } -- Gitblit v1.8.0