| | |
| | | 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 = true;// 是否为外网 |
| | | 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 测试为false |
| | | 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 int pageCount = 20; |
| | | public static int HOT_SEARCH_COUNT = 20; |
| | | |
| | | public final static String[] YEARS = { "全部", "2016", "2015", "2014", "2013", "2012", "2011", "00年代", "90年代", |
| | | "80年代" }; |
| | | // 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 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 final static String RANDKEY = "randkey"; |
| | | |
| | | public final static boolean IsDebug = 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 final static boolean IOSTest = false; |
| | | public final static String[] YEARS = {"全部", "2016", "2015", "2014", "2013", "2012", "2011", "00年代", "90年代", |
| | | "80年代"}; |
| | | |
| | | 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[] 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" |
| | | }; |
| | | |
| | | // Android广告位 |
| | | public static int AD_COMMON_ANDROID_FOUND_SPECIAL = 1; |
| | | public static int AD_COMMON_ANDROID_FOUND_APPHUI = 2; |
| | | public final static boolean IsDebug = true; |
| | | |
| | | 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 IOSTest = false; |
| | | |
| | | // IOS广告位 |
| | | public static int AD_COMMON_IOS_FOUND_SPECIAL = 3; |
| | | public static int AD_COMMON_IOS_FOUND_APPHUI = 4; |
| | | 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 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; |
| | | // Android广告位 |
| | | public static int AD_COMMON_ANDROID_FOUND_SPECIAL = 1; |
| | | public static int AD_COMMON_ANDROID_FOUND_APPHUI = 2; |
| | | |
| | | public static int VERSION_NEW_ANDROID_V2 = 35;// 新版版本号 |
| | | public static int VERSION_NEW_IOS_V2 = 15;// 新版版本号 |
| | | 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正在上线的版本 |
| | | public final static int IOS_ONLINING_VERSION = 78; |
| | | |
| | | } |