feat(config): 更新API配置并添加复材铺贴服务支持
- 修改单证检验API地址从192.168.6.32:8820到192.168.22.199:8820 - 添加复材铺贴API配置项API_BASE_URL_5指向192.168.22.125:8100 - 在MyApplication中新增appComponent4静态变量 - 初始化appComponent4用于复材铺贴服务的Dagger网络组件 - 注释掉API_BASE_URL_5的使用代码等待后续启用
这个提交包含在:
父节点
0756be50d4
当前提交
b739da5997
@ -43,7 +43,9 @@ android {
|
|||||||
// 喷涂质检
|
// 喷涂质检
|
||||||
buildConfigField("String", "API_BASE_URL_3", "\"http://192.168.6.156:10085\"")
|
buildConfigField("String", "API_BASE_URL_3", "\"http://192.168.6.156:10085\"")
|
||||||
// 单证检验
|
// 单证检验
|
||||||
buildConfigField("String", "API_BASE_URL_4", "\"http://192.168.6.32:8820\"")
|
buildConfigField("String", "API_BASE_URL_4", "\"http://192.168.22.199:8820\"")
|
||||||
|
// 复材铺贴
|
||||||
|
buildConfigField("String", "API_BASE_URL_5", "\"http://192.168.22.125:8100\"")
|
||||||
}
|
}
|
||||||
fiveg {
|
fiveg {
|
||||||
buildConfigField("String", "SPEECH_DOMAIN", "\"172.16.26.73:16443\"")
|
buildConfigField("String", "SPEECH_DOMAIN", "\"172.16.26.73:16443\"")
|
||||||
@ -62,6 +64,8 @@ android {
|
|||||||
buildConfigField("String", "API_BASE_URL_3", "\"http://192.168.6.156:10085\"")
|
buildConfigField("String", "API_BASE_URL_3", "\"http://192.168.6.156:10085\"")
|
||||||
// 单证检验
|
// 单证检验
|
||||||
buildConfigField("String", "API_BASE_URL_4", "\"http://192.168.6.32:8820\"")
|
buildConfigField("String", "API_BASE_URL_4", "\"http://192.168.6.32:8820\"")
|
||||||
|
// 复材铺贴
|
||||||
|
buildConfigField("String", "API_BASE_URL_5", "\"http://192.168.22.125:8100\"")
|
||||||
}
|
}
|
||||||
external {
|
external {
|
||||||
buildConfigField("String", "SPEECH_DOMAIN", "\"172.16.26.73:16443\"")
|
buildConfigField("String", "SPEECH_DOMAIN", "\"172.16.26.73:16443\"")
|
||||||
@ -80,6 +84,8 @@ android {
|
|||||||
buildConfigField("String", "API_BASE_URL_3", "\"http://192.168.6.156:10085\"")
|
buildConfigField("String", "API_BASE_URL_3", "\"http://192.168.6.156:10085\"")
|
||||||
// 单证检验
|
// 单证检验
|
||||||
buildConfigField("String", "API_BASE_URL_4", "\"http://192.168.22.199:8820\"")
|
buildConfigField("String", "API_BASE_URL_4", "\"http://192.168.22.199:8820\"")
|
||||||
|
// 复材铺贴
|
||||||
|
buildConfigField("String", "API_BASE_URL_5", "\"http://192.168.22.125:8100\"")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|||||||
@ -37,6 +37,7 @@ public class MyApplication extends App {
|
|||||||
public static AppComponent appComponent2;
|
public static AppComponent appComponent2;
|
||||||
// 单证检验服务的 Dagger 网络组件
|
// 单证检验服务的 Dagger 网络组件
|
||||||
public static AppComponent appComponent3;
|
public static AppComponent appComponent3;
|
||||||
|
public static AppComponent appComponent4;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
@ -46,11 +47,13 @@ public class MyApplication extends App {
|
|||||||
appComponent1 = HttpManager.getAppComponent("https://22v1322u01.vicp.fun", new HeaderInterceptor(getApplicationContext()));
|
appComponent1 = HttpManager.getAppComponent("https://22v1322u01.vicp.fun", new HeaderInterceptor(getApplicationContext()));
|
||||||
appComponent2 = HttpManager.getAppComponent("https://22v1322u01.vicp.fun", new HeaderInterceptor(getApplicationContext()));
|
appComponent2 = HttpManager.getAppComponent("https://22v1322u01.vicp.fun", new HeaderInterceptor(getApplicationContext()));
|
||||||
appComponent3 = HttpManager.getAppComponent("https://22v1322u01.vicp.fun", new HeaderInterceptor(getApplicationContext()));
|
appComponent3 = HttpManager.getAppComponent("https://22v1322u01.vicp.fun", new HeaderInterceptor(getApplicationContext()));
|
||||||
|
appComponent4 = HttpManager.getAppComponent("https://22v1322u01.vicp.fun", new HeaderInterceptor(getApplicationContext()));
|
||||||
|
|
||||||
// appComponent = HttpManager.getAppComponent(BuildConfig.API_BASE_URL_1, new HeaderInterceptor(getApplicationContext()));
|
// appComponent = HttpManager.getAppComponent(BuildConfig.API_BASE_URL_1, new HeaderInterceptor(getApplicationContext()));
|
||||||
// appComponent1 = HttpManager.getAppComponent(BuildConfig.API_BASE_URL_2, new HeaderInterceptor(getApplicationContext()));
|
// appComponent1 = HttpManager.getAppComponent(BuildConfig.API_BASE_URL_2, new HeaderInterceptor(getApplicationContext()));
|
||||||
// appComponent2 = HttpManager.getAppComponent(BuildConfig.API_BASE_URL_3, new HeaderInterceptor(getApplicationContext()));
|
// appComponent2 = HttpManager.getAppComponent(BuildConfig.API_BASE_URL_3, new HeaderInterceptor(getApplicationContext()));
|
||||||
// appComponent3 = HttpManager.getAppComponent(BuildConfig.API_BASE_URL_4, new HeaderInterceptor(getApplicationContext()));
|
// appComponent3 = HttpManager.getAppComponent(BuildConfig.API_BASE_URL_4, new HeaderInterceptor(getApplicationContext()));
|
||||||
|
// appComponent4 = HttpManager.getAppComponent(BuildConfig.API_BASE_URL_5, new HeaderInterceptor(getApplicationContext()));
|
||||||
|
|
||||||
initSdk();
|
initSdk();
|
||||||
}
|
}
|
||||||
|
|||||||
正在加载...
在新工单中引用
屏蔽一个用户