|
@@ -3,6 +3,7 @@ package com.example.informationkanban.utils;
|
|
import android.content.Context;
|
|
import android.content.Context;
|
|
import android.content.SharedPreferences;
|
|
import android.content.SharedPreferences;
|
|
|
|
|
|
|
|
+import com.example.informationkanban.BuildConfig;
|
|
import com.example.informationkanban.application.MyApplication;
|
|
import com.example.informationkanban.application.MyApplication;
|
|
|
|
|
|
public class NetFunctionConfig {
|
|
public class NetFunctionConfig {
|
|
@@ -100,10 +101,23 @@ public class NetFunctionConfig {
|
|
}
|
|
}
|
|
|
|
|
|
public static String getCBDUrl() {
|
|
public static String getCBDUrl() {
|
|
- //return getSP().getString(KEY_CBD_URL, "http://cbd.s32.wdklian.com");
|
|
|
|
- return getSP().getString(KEY_CBD_URL, "http://cbd.sleep32.wdklian.com"); //32寸黄金睡眠看板(维鼎床垫)
|
|
|
|
|
|
+ //return getSP().getString(KEY_CBD_URL, "http://cbd.s32.wdklian.com"); //32寸律动家
|
|
|
|
+ //return getSP().getString(KEY_CBD_URL, "http://cbd.sleep32.wdklian.com"); //32寸黄金睡眠看板(维鼎床垫)
|
|
//return getSP().getString(KEY_CBD_URL, "http://cbd.wdklian.com"); //65寸黄金睡眠看板
|
|
//return getSP().getString(KEY_CBD_URL, "http://cbd.wdklian.com"); //65寸黄金睡眠看板
|
|
//return getSP().getString(KEY_CBD_URL, "");
|
|
//return getSP().getString(KEY_CBD_URL, "");
|
|
|
|
+
|
|
|
|
+ if (BuildConfig.type.equalsIgnoreCase("s32_ldj")) {
|
|
|
|
+ //32寸律动家
|
|
|
|
+ return getSP().getString(KEY_CBD_URL, "http://cbd.s32.wdklian.com");
|
|
|
|
+ } else if (BuildConfig.type.equalsIgnoreCase("s32_hjsm")) {
|
|
|
|
+ //32寸黄金睡眠
|
|
|
|
+ return getSP().getString(KEY_CBD_URL, "http://cbd.sleep32.wdklian.com");
|
|
|
|
+ } else if (BuildConfig.type.equalsIgnoreCase("s65_hjsm")) {
|
|
|
|
+ //65寸黄金睡眠
|
|
|
|
+ return getSP().getString(KEY_CBD_URL, "http://cbd.wdklian.com");
|
|
|
|
+ } else {
|
|
|
|
+ return getSP().getString(KEY_CBD_URL, "");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
public static void setCBDUrl(String url) {
|
|
public static void setCBDUrl(String url) {
|
|
@@ -111,8 +125,9 @@ public class NetFunctionConfig {
|
|
}
|
|
}
|
|
|
|
|
|
public static String getCBDS64Url() {
|
|
public static String getCBDS64Url() {
|
|
- //return getSP().getString(KEY_CBD_URL, "http://cbd.s64.wdklian.com/#/?token=");
|
|
|
|
- return getSP().getString(KEY_CBD_S64_URL, "");
|
|
|
|
|
|
+ //64寸律动检测
|
|
|
|
+ return getSP().getString(KEY_CBD_URL, "http://cbd.s64.wdklian.com/#/?token=");
|
|
|
|
+ //return getSP().getString(KEY_CBD_S64_URL, "");
|
|
}
|
|
}
|
|
|
|
|
|
public static void setCBDS64Url(String url) {
|
|
public static void setCBDS64Url(String url) {
|