Commit bdbc9225 by chengfengpiaopiao

切换正式环境

parent 726221e1
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</value> </value>
</option> </option>
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">
......
...@@ -19,6 +19,12 @@ public class Constant { ...@@ -19,6 +19,12 @@ public class Constant {
public static final boolean DEBUG = true; public static final boolean DEBUG = true;
public static final String BASE_URL = "http://api.7peng.cn"; public static final String BASE_URL = "http://api.7peng.cn";
//大厅
public static final String GAME_HOME = "http://h5.7peng.cn/";
//商城
public static final String SHOP_HOME = "http://api.7peng.cn/shop";
//个人主页
public static final String PERSONALE_HOME = "http://h5.7peng.cn/profile.html";
public static final String WEIXIN_APP_ID = "wxac811a3942bd3638"; public static final String WEIXIN_APP_ID = "wxac811a3942bd3638";
public static final String WEIXIN_APP_SECRET = "182ad59bb146ed391f7d6c8ce5664903"; public static final String WEIXIN_APP_SECRET = "182ad59bb146ed391f7d6c8ce5664903";
...@@ -35,27 +41,27 @@ public class Constant { ...@@ -35,27 +41,27 @@ public class Constant {
//分享图片路径 //分享图片路径
public final static String SHARE_DIR = sBANANA_DIR + "/share/"; public final static String SHARE_DIR = sBANANA_DIR + "/share/";
//正式地址 // //正式地址
public static final String RELEASE_BASE_URL = "http://700sport.com/"; // public static final String RELEASE_BASE_URL = "http://700sport.com/";
//
//外部测试地址 // //外部测试地址
public static final String OUT_BASE_URL_TEST = "http://106.75.137.139/"; // 测服的外网 // public static final String OUT_BASE_URL_TEST = "http://106.75.137.139/"; // 测服的外网
//
//测试地址 // //测试地址
public static final String BASE_URL_TEST = "http://192.168.175.136:8080/"; // public static final String BASE_URL_TEST = "http://192.168.175.136:8080/";
//
//
public static String getBaseUrl() { // public static String getBaseUrl() {
switch (BuildConfig.network_type){ // switch (BuildConfig.network_type){
case networkType.TEST: // case networkType.TEST:
return BASE_URL_TEST; // return BASE_URL_TEST;
//
case networkType.OUT_TEST: // case networkType.OUT_TEST:
return OUT_BASE_URL_TEST; // return OUT_BASE_URL_TEST;
//
case networkType.RELEASE: // case networkType.RELEASE:
default: // default:
return RELEASE_BASE_URL; // return RELEASE_BASE_URL;
} // }
} // }
} }
...@@ -109,7 +109,7 @@ public class MainActivity extends FragmentActivity implements IWebView ,Activity ...@@ -109,7 +109,7 @@ public class MainActivity extends FragmentActivity implements IWebView ,Activity
//http://api.7peng.cn/shop 商城 //http://api.7peng.cn/shop 商城
//http://h5.7peng.cn/profile.html 个人主页 //http://h5.7peng.cn/profile.html 个人主页
// //
private String[] urls = {"http://h5.7peng.cn/","http://api.7peng.cn/shop","http://h5.7peng.cn/profile.html"}; private String[] urls = {Constant.GAME_HOME,Constant.SHOP_HOME,Constant.PERSONALE_HOME};
private String uid; private String uid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment