|
|
@@ -72,8 +72,14 @@ public class Config {
|
|
|
public static String SMALL_STATION_URL_SHEEP = "http://smallstation.kfzs.com";
|
|
|
public static String SMALL_STATION_URL_TEST = "http://10.8.210.20:8080";
|
|
|
//在数据库中表 config 中 配置 small_station_url后,可以进行设置 ,否则使用默认的值
|
|
|
- public static String SMALL_STATION_URL = TextUtils.equals(SheepApp.getInstance().getConnectAddress().getName(), "sheep") ? SMALL_STATION_URL_SHEEP : SMALL_STATION_URL_TEST;
|
|
|
+ public static String SMALL_STATION_URL;
|
|
|
|
|
|
+ static {
|
|
|
+ initSMALL_STATION_URL();
|
|
|
+ }
|
|
|
+ public static void initSMALL_STATION_URL(){
|
|
|
+ SMALL_STATION_URL = TextUtils.equals(SheepApp.getInstance().getConnectAddress().getName(), "sheep") ? SMALL_STATION_URL_SHEEP : SMALL_STATION_URL_TEST;
|
|
|
+ }
|
|
|
public static String getUrlByPath(String path, String...query){
|
|
|
String url = SMALL_STATION_URL + path;
|
|
|
if(query != null && query.length > 0){
|