package com.haicaojie.android;
|
|
/**
|
* Created by weikou2015 on 2017/3/7.
|
* 全局变量
|
*/
|
|
public class BuXinConstant {
|
|
// public static final String HOST = "http://192.168.1.122:8080";//内网测试
|
// public static final String HOST = "http://192.168.1.200:8088";//内网测试
|
// public static final String HOST = "http://114.215.140.3:8089";//外网测试
|
public static final String HOST = "http://api.haicaojie.com";//外网正式
|
|
/**
|
* 代理检测
|
*
|
* @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 MIPUSH_ID = "2882303761517818755";
|
public static final String MIPUSH_KEY = "5171781865755";
|
|
public static final String QQ_ID = "1106961896";
|
// public static final String QQ_ID = "222222";
|
|
public static final String QQ_KEY = "UiRhnJ78SFFmoVaC";
|
|
public static final String WECHAT_ID = "wx221b45954900b98f";
|
public static final String WECHAT_SECRET = "c517f0d392751fa4421ea6f8e4b20cda";
|
|
public static final String SINA_ID = "2963429064";
|
public static final String SINA_KEY = "aa1c7b53c4d34b634dcc6c1ed36f48ce";
|
public static final String REDIRECT_URL = "https://api.weibo.com/oauth2/default.html";
|
public static final String SCOPE =
|
"email,direct_messages_rea" +
|
"" +
|
",direct_messages_write,"
|
+ "friendships_groups_read,friendships_groups_write,statuses_to_me_read,"
|
+ "follow_app_official_microblog," + "invitation_write";
|
|
public static final String TAO_BAO_KE_KEY = "24937213";//淘宝联盟后台key
|
public static final String TAO_BAO_APP_KEY = "24934690";//淘宝联盟后台key
|
public static final String BAICHUAN_PID = "mm_133239778_45750814_699804363";
|
public static final String BAICHUAN_ADZONE_ID = "699804363";
|
|
public static final String APP_UPDATE_KEY = "e2c420d928d4bf8ce0ff2ec19b371514";
|
public static final boolean DEBUG = false;
|
|
public static String INVITE_IMG = "";
|
public static boolean GO_SCAN = false;
|
public static boolean XIAOMI_APP_STORE = false;
|
public static String SHARE_FRIENDS_TITLE = "美好生活 省钱省心-海草街";
|
public static String SHARE_FRIENDS_DESC = "我用这个APP已经省了不少钱了,网购领优惠券真的超省。";
|
public static String SHARE_FRIENDS_LINK = "http://a.app.qq.com/o/simple.jsp?pkgname=com.haicaojie.android";
|
}
|