admin
2021-03-06 7804263c6061aef813f0db27cb3046f746572606
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
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 final static String HOST="http://api.ysdq.yeshitv.com:8089";
 
    public final static String PHONE_BIND_PREFIX = "phone_login_code_";
 
    public static boolean isUpdate = false;// 是否在上传应用市场;
 
    public static boolean IsOutNet = true;// 是否为外网
 
    public static boolean JobTasker = false;
 
    public static int pageCount = 20;
    public static int HOT_SEARCH_COUNT = 20;
 
    // 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 RANDKEY = "randkey";
 
    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[] YEARS = {"全部", "2016", "2015", "2014", "2013", "2012", "2011", "00年代", "90年代",
            "80年代"};
 
    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 boolean IsDebug = true;
 
    public final static boolean IOSTest = false;
 
    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";
 
    // 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;// 新版版本号
 
 
    //腾讯短信验证码配置
    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);
    }
 
 
}