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;
|
}
|
}
|
|
}
|