admin
2021-02-06 3bf7b3773cef4b20637f98e7dbcc8a73cacffe02
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
package com.mugua.mgvideo.util;
 
public class BeibeiConstant {
    public static final String HOST = "http://api.mugua.yeshitv.com:8091";
 
//    public static final String HOST = "http://192.168.1.200:8088";
 
//     public static final String HOST = "http://192.168.1.122:8080";
 
    /**
     * @return true为没有连接代理服务器,false为连接了代理服务器,禁止访问请求服务器
     */
    public static boolean isDisableProxy() {
        String proHost = null;// 代理主机
        int proPort = -1;// 端口号
        try {
            proHost = android.net.Proxy.getDefaultHost();
            proPort = android.net.Proxy.getDefaultPort();
        } catch (Exception e) {
 
        }
//        return StringUtils.isEmpty(proHost) && proPort == -1;
        return true;// 测试时关闭代理限制
    }
 
    public static final String QQ_ID = "1104492673";
 
    public static final String QQ_LOGIN_ID = "1104537136";
 
    public static final String QQ_KEY = "AI6ri4IcDhsacEoP";
 
    public static final String WECHAT_KEY = "wx5267ae6edae5ecb2";
 
    public static final String GDT_EXIT_DIALOG = "8051402676338159";
 
    //大图广告位
    public static final String GDT_HOME_AND_PLAY_BIG_PICTURE = "3041305616723820";
 
    //推荐信息流
    public static final String GDT_RECOMMEND_CONTENT= "6031208627634167";
 
    /**
     * 广点通广告
     */
    //1106112837
    public static String GDT_APP_ID = "1106112837";// APPID
 
    public static String GDT_SPLASH_AD_ID = "6081008616843580";// 开屏广告位ID
 
    public static String GDT_NATIVEPOS_ID = "5010320697302671";// 原生广告位ID
 
    public static String GDT_BANNER_ID = "8040626279090250";// Banner广告位ID
 
    public static String GDT_INTERSTITIAL_ID = "9010928229091199";// 插屏广告位ID
 
    public static String GDT_NATIVEPOS_MIN_ID = "7010420219694202";// 首页首屏小原生广告位ID
 
    public static final String BAICHUAN_APPKEY = "24980167";
    public static final String BAICHUAN_PID = "mm_124933865_56750082_19509850457";
    public static final String BAICHUAN_ADZONE_ID = BAICHUAN_PID.split("_")[3];
 
    //视频列表页面
    public static String GDT_TEMPLATE_SEARCH_RESULT="9071202636920710";
 
    public static final boolean DEBUG = false;
    public static final boolean ISHUAWEI = true;
    public static boolean ADSHOW = true;
 
    /**
     * 头像获取路劲可能不完整,需要手动添加完整
     *
     * @param path
     * @return
     */
    public static String addPreFix(String path) {
        if (path.contains("http")) {
            return path;
        } else {
            path = HOST + "/BuWan" + path;
            return path;
        }
    }
 
}