admin
2021-10-21 7e2ac66d7c532a5725635fa3913789bb17c1e157
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
package com.yeshi.base.utils;
 
public class BeibeiConstant {
    public static final String HOST = "http://api.ysdq.yeshitv.com:8089";
 
//    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_KEY = "AI6ri4IcDhsacEoP";
 
 
    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 final boolean DEBUG = false;
    public static final boolean ISHUAWEI = true;
 
    /**
     * 头像获取路劲可能不完整,需要手动添加完整
     *
     * @param path
     * @return
     */
    public static String addPreFix(String path) {
        if (path.contains("http")) {
            return path;
        } else {
            path = HOST + "/BuWan" + path;
            return path;
        }
    }
 
}