From f537abe9f3646c739beaf15076246a2f71a347e9 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 20 二月 2025 16:57:55 +0800 Subject: [PATCH] IOS广告增加区域屏蔽 --- src/main/java/com/yeshi/buwan/util/Constant.java | 183 +++++++++++++++++++++++++++++---------------- 1 files changed, 116 insertions(+), 67 deletions(-) diff --git a/src/main/java/com/yeshi/buwan/util/Constant.java b/src/main/java/com/yeshi/buwan/util/Constant.java index 69b6b59..18c81ec 100644 --- a/src/main/java/com/yeshi/buwan/util/Constant.java +++ b/src/main/java/com/yeshi/buwan/util/Constant.java @@ -1,91 +1,140 @@ package com.yeshi.buwan.util; +import com.yeshi.buwan.dto.config.TencentSMSConfig; +import org.yeshi.utils.annotation.MapUtil; + import javax.persistence.Entity; +import java.util.Properties; @Entity public class Constant { - public static boolean isUpdate = false;// 鏄惁鍦ㄤ笂浼犲簲鐢ㄥ競鍦�; - public static boolean IsOutNet = false;// 鏄惁涓哄缃� + public final static String HOST = "http://api.ysdq.yeshitv.com:8089"; - public static boolean JobTasker = false; + public final static String PHONE_BIND_PREFIX = "phone_login_code_"; - public static int pageCount = 20; - public static int HOT_SEARCH_COUNT = 20; + public static boolean isUpdate = false;// 鏄惁鍦ㄤ笂浼犲簲鐢ㄥ競鍦�; - // 1-姣忔棩鎵撳紑閫佺Н鍒� 2-瑙傜湅瑙嗛閫佺Н鍒� 3-缂撳瓨瑙嗛閫佺Н鍒� 4-鎼滆棌瑙嗛閫佺Н鍒� 5-鍒嗕韩閫佺Н鍒� 6-杩炵画瑙傜湅 7-璇勪环 8-寤鸿 - public final static int GET_SCORE_OPEN = 1; - public final static int GET_SCORE_WATCH = 2; - public final static int GET_SCORE_SAVE = 3; - public final static int GET_SCORE_COLLECTION = 4; - public final static int GET_SCORE_SHARE = 5; - public final static int GET_SCORE_CONTINUE_WATCH = 6; - public final static int GET_SCORE_EVALUATE = 7; - public final static int GET_SCORE_ADVICE = 8; + // TODO 娴嬭瘯涓篺alse + public static boolean IsOutNet = true;// 鏄惁涓哄缃� - public final static String RANDKEY = "randkey"; + public static boolean JobTasker = true; - public final static String RANDOMCODE = "RANDOM_CODE"; - public final static String ADMIN = "ADMIN_INFO"; - public final static String WEBSITE = "video.yeshitv.com:8089";// - // public final static String WEBSITE = "115.28.20.162:8080"; - public final static String ROOT_UPLOAD = "C:/software/Tomcat 6.0/webapps/BeiBeiVideo/upload/video"; + // 鏄惁鏈夐娆′笂绾跨殑娓犻亾 + public static boolean IS_HAVE_FIRST_ONLINE = false; - public final static String[] YEARS = { "鍏ㄩ儴", "2016", "2015", "2014", "2013", "2012", "2011", "00骞翠唬", "90骞翠唬", - "80骞翠唬" }; + public static int pageCount = 20; + public static int HOT_SEARCH_COUNT = 20; - public final static String[] POJIE_LIST = { "http://www.fun.tv/" - // "http://m.fun.tv/", "http://www.hunantv.com/", - // "http://m.hunantv.com/", "http://www.wasu.cn/", - // "http://v.ku6.com/", "http://m.ku6.com", - // "http://ps.beva.cn", "http://m.tv.sohu.com/", - // "http://tv.sohu.com/", "http://www.acfun.tv/", "leshivip=1", - // "http://www.le123.com", "http://cms.cztv.com", - // "https://dqplayers.duapp.com/", "http://v.youku.com", - // "http://www.tudou.com", "http://tv.ifeng.com/film", - // "http://v.pptv.com", "http://www.letv.com", - // "http://www.le.com" - }; + // 1-姣忔棩鎵撳紑閫佺Н鍒� 2-瑙傜湅瑙嗛閫佺Н鍒� 3-缂撳瓨瑙嗛閫佺Н鍒� 4-鎼滆棌瑙嗛閫佺Н鍒� 5-鍒嗕韩閫佺Н鍒� 6-杩炵画瑙傜湅 7-璇勪环 8-寤鸿 + public final static int GET_SCORE_OPEN = 1; + public final static int GET_SCORE_WATCH = 2; + public final static int GET_SCORE_SAVE = 3; + public final static int GET_SCORE_COLLECTION = 4; + public final static int GET_SCORE_SHARE = 5; + public final static int GET_SCORE_CONTINUE_WATCH = 6; + public final static int GET_SCORE_EVALUATE = 7; + public final static int GET_SCORE_ADVICE = 8; - public final static boolean IsDebug = true; + public final static String RANDKEY = "randkey"; - public final static boolean IOSTest = false; + public final static String RANDOMCODE = "RANDOM_CODE"; + public final static String ADMIN = "ADMIN_INFO"; + public final static String WEBSITE = "video.yeshitv.com:8089";// + // public final static String WEBSITE = "115.28.20.162:8080"; + public final static String ROOT_UPLOAD = "C:/software/Tomcat 6.0/webapps/BeiBeiVideo/upload/video"; - public final static String SOLR_URL = "http://121.42.58.49:8080/solr/YSDQ/"; - // public final static String ROOT_UPLOAD = - // "D:/workspace/web/.metadata/.me_tcat/webapps/BeiBeiVideo/upload/video"; + public final static String[] YEARS = {"鍏ㄩ儴", "2016", "2015", "2014", "2013", "2012", "2011", "00骞翠唬", "90骞翠唬", + "80骞翠唬"}; - // Android骞垮憡浣� - public static int AD_COMMON_ANDROID_FOUND_SPECIAL = 1; - public static int AD_COMMON_ANDROID_FOUND_APPHUI = 2; + public final static String[] POJIE_LIST = {"http://www.fun.tv/" + // "http://m.fun.tv/", "http://www.hunantv.com/", + // "http://m.hunantv.com/", "http://www.wasu.cn/", + // "http://v.ku6.com/", "http://m.ku6.com", + // "http://ps.beva.cn", "http://m.tv.sohu.com/", + // "http://tv.sohu.com/", "http://www.acfun.tv/", "leshivip=1", + // "http://www.le123.com", "http://cms.cztv.com", + // "https://dqplayers.duapp.com/", "http://v.youku.com", + // "http://www.tudou.com", "http://tv.ifeng.com/film", + // "http://v.pptv.com", "http://www.letv.com", + // "http://www.le.com" + }; - public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_DIANYING = 5; - public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_DIANSHIJU = 6; - public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_ZONGYI = 7; - public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_DONGMAN = 8; - public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_YULE = 9; - public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_YOUXI = 10; - public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_SHENGHUO = 11; - public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_KEJI = 12; - public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_TIYU = 13; - public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_YUEWU = 14; + public final static boolean IsDebug = true; - // IOS骞垮憡浣� - public static int AD_COMMON_IOS_FOUND_SPECIAL = 3; - public static int AD_COMMON_IOS_FOUND_APPHUI = 4; + public final static boolean IOSTest = false; - public static int AD_COMMON_IOS_CLASS_RECOMMEND_DIANYING = 15; - public static int AD_COMMON_IOS_CLASS_RECOMMEND_DIANSHIJU = 16; - public static int AD_COMMON_IOS_CLASS_RECOMMEND_ZONGYI = 17; - public static int AD_COMMON_IOS_CLASS_RECOMMEND_DONGMAN = 18; - public static int AD_COMMON_IOS_CLASS_RECOMMEND_YULE = 19; - public static int AD_COMMON_IOS_CLASS_RECOMMEND_YOUXI = 20; - public static int AD_COMMON_IOS_CLASS_RECOMMEND_SHENGHUO = 21; - public static int AD_COMMON_IOS_CLASS_RECOMMEND_KEJI = 22; - public static int AD_COMMON_IOS_CLASS_RECOMMEND_TIYU = 23; - public static int AD_COMMON_IOS_CLASS_RECOMMEND_YUEWU = 24; + public final static String SOLR_URL = "http://121.42.58.49:8080/solr/YSDQ/"; + // public final static String ROOT_UPLOAD = + // "D:/workspace/web/.metadata/.me_tcat/webapps/BeiBeiVideo/upload/juhe"; - public static int VERSION_NEW_ANDROID_V2 = 35;// 鏂扮増鐗堟湰鍙� - public static int VERSION_NEW_IOS_V2 = 15;// 鏂扮増鐗堟湰鍙� + // Android骞垮憡浣� + public static int AD_COMMON_ANDROID_FOUND_SPECIAL = 1; + public static int AD_COMMON_ANDROID_FOUND_APPHUI = 2; + + public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_DIANYING = 5; + public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_DIANSHIJU = 6; + public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_ZONGYI = 7; + public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_DONGMAN = 8; + public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_YULE = 9; + public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_YOUXI = 10; + public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_SHENGHUO = 11; + public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_KEJI = 12; + public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_TIYU = 13; + public static int AD_COMMON_ANDROID_CLASS_RECOMMEND_YUEWU = 14; + + // IOS骞垮憡浣� + public static int AD_COMMON_IOS_FOUND_SPECIAL = 3; + public static int AD_COMMON_IOS_FOUND_APPHUI = 4; + + public static int AD_COMMON_IOS_CLASS_RECOMMEND_DIANYING = 15; + public static int AD_COMMON_IOS_CLASS_RECOMMEND_DIANSHIJU = 16; + public static int AD_COMMON_IOS_CLASS_RECOMMEND_ZONGYI = 17; + public static int AD_COMMON_IOS_CLASS_RECOMMEND_DONGMAN = 18; + public static int AD_COMMON_IOS_CLASS_RECOMMEND_YULE = 19; + public static int AD_COMMON_IOS_CLASS_RECOMMEND_YOUXI = 20; + public static int AD_COMMON_IOS_CLASS_RECOMMEND_SHENGHUO = 21; + public static int AD_COMMON_IOS_CLASS_RECOMMEND_KEJI = 22; + public static int AD_COMMON_IOS_CLASS_RECOMMEND_TIYU = 23; + public static int AD_COMMON_IOS_CLASS_RECOMMEND_YUEWU = 24; + + public static int VERSION_NEW_ANDROID_V2 = 35;// 鏂扮増鐗堟湰鍙� + public static int VERSION_NEW_IOS_V2 = 15;// 鏂扮増鐗堟湰鍙� + + + //鍒嗙被涓殑VIP + public final static int VIDEO_TYPE_VIP = 100001; + + //鐢靛奖 + public final static int VIDEO_TYPE_VIP_MOVIE = 100002; + //鐢佃鍓� + public final static int VIDEO_TYPE_VIP_TV = 100003; + //缁艰壓 + public final static int VIDEO_TYPE_VIP_SHOW = 100004; + //鍔ㄦ极 + public final static int VIDEO_TYPE_VIP_CARTOON = 100005; + + + //鎼滅储鎺ュ彛杩斿洖鐨勯珮娓呯墖婧� + public final static int SEARCH_RESULT_TYPE_HIGH_DEFINITION = 9999; + + public final static Integer[] vipTypes = new Integer[]{ + VIDEO_TYPE_VIP, VIDEO_TYPE_VIP_MOVIE, VIDEO_TYPE_VIP_TV, VIDEO_TYPE_VIP_SHOW, VIDEO_TYPE_VIP_CARTOON + }; + + //鍒嗙被涓殑鐩存挱 + public final static int VIDEO_TYPE_ZHIBO = 22222; + + + //鑵捐鐭俊楠岃瘉鐮侀厤缃� + public static TencentSMSConfig tencentSMSConfig; + + static { + Properties ps = org.yeshi.utils.PropertiesUtil + .getProperties(Constant.class.getClassLoader().getResourceAsStream("sms_tencent_config.properties")); + tencentSMSConfig = (TencentSMSConfig) MapUtil.parseMap(TencentSMSConfig.class, ps); + } + //IOS姝e湪涓婄嚎鐨勭増鏈� + public final static int IOS_ONLINING_VERSION = 78; } -- Gitblit v1.8.0