|
@@ -27,6 +27,7 @@ import androidx.appcompat.app.AlertDialog;
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
|
|
|
|
import com.example.informationkanban.dialog.UrlConfigDialogHelper;
|
|
|
+import com.example.informationkanban.utils.AppUtil;
|
|
|
import com.example.informationkanban.utils.GetInformationUtils;
|
|
|
import com.example.informationkanban.utils.LocaleMangerUtils;
|
|
|
import com.example.informationkanban.utils.NetFunctionConfig;
|
|
@@ -68,6 +69,10 @@ public class TBSMainActivity extends AppCompatActivity {
|
|
|
String url = NetFunctionConfig.getCBDUrl();
|
|
|
if (BuildConfig.type.equalsIgnoreCase("s64_ldjc")) {
|
|
|
url = NetFunctionConfig.getCBDS64Url();
|
|
|
+ } else if (BuildConfig.type.equalsIgnoreCase("s65_shzy")) {
|
|
|
+ url = NetFunctionConfig.getWdklS65Url();
|
|
|
+ } else if (BuildConfig.type.equalsIgnoreCase("s64_wxh")) {
|
|
|
+ url = NetFunctionConfig.getWxhUrl();
|
|
|
}
|
|
|
|
|
|
if (TextUtils.isEmpty(url)) {
|
|
@@ -114,12 +119,19 @@ public class TBSMainActivity extends AppCompatActivity {
|
|
|
initJavaScriptInterface();
|
|
|
|
|
|
//String myUrl = "192.168.1.196:8080";
|
|
|
- String myUrl = NetFunctionConfig.getCBDUrl();
|
|
|
- if (BuildConfig.type.equalsIgnoreCase("s64_ldjc")) {
|
|
|
+ String myUrl;
|
|
|
+ if (BuildConfig.type.equalsIgnoreCase("s65_shzy")) {
|
|
|
+ myUrl = NetFunctionConfig.getWdklS65Url();
|
|
|
+ } else if (BuildConfig.type.equalsIgnoreCase("s64_ldjc")) {
|
|
|
myUrl = NetFunctionConfig.getCBDS64Url() + MAC;
|
|
|
+ } else if (BuildConfig.type.equalsIgnoreCase("s64_wxh")) {
|
|
|
+ myUrl = NetFunctionConfig.getWxhUrl();
|
|
|
+ } else {
|
|
|
+ //都要带token
|
|
|
+ myUrl = NetFunctionConfig.getCBDUrl() + MAC;
|
|
|
}
|
|
|
|
|
|
- //Toast.makeText(TBSMainActivity.this, "fetch: " + myUrl, Toast.LENGTH_LONG).show();
|
|
|
+ Toast.makeText(TBSMainActivity.this, "正在加载数据,请稍后...", Toast.LENGTH_LONG).show();
|
|
|
|
|
|
webView.loadUrl(myUrl);
|
|
|
|