package com.weikou.wpc.superad.api;
|
|
import com.ysh.wpc.appupdate.util.StringUtils;
|
|
public class BannerConstant {
|
|
public static final String HOST = "http://ad.yeshitv.com:8090/ad/";// 外网
|
|
// public static final String HOST = "http://192.168.1.122:8080/ad/";
|
|
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;
|
}
|
|
}
|