config(app): 更新应用配置中的API基础URL
- 将baseUrl从公网地址改为本地IP地址 - 移除不再使用的baseUrl1私有变量 - 注释掉旧的本地测试地址配置 - 修改HttpManager初始化以使用新的本地端口配置 - 统一API端点为本地开发环境地址
这个提交包含在:
父节点
2b3965da67
当前提交
3f6eec3e34
@ -15,11 +15,8 @@ import com.xuqm.base.di.manager.HttpManager;
|
||||
*/
|
||||
public class MyApplication extends App {
|
||||
|
||||
public static String baseUrl = "http://22fs132201.imwork.net";
|
||||
private static String baseUrl1 = "https://22v1322u01.vicp.fun";
|
||||
|
||||
// public static String baseUrl = "http://192.168.6.20";
|
||||
// private static String baseUrl1 = "http://192.168.6.20:12119";
|
||||
// public static String baseUrl = "http://22fs132201.imwork.net";
|
||||
public static String baseUrl = "http://192.168.6.20";
|
||||
|
||||
public static AppComponent appComponent1;
|
||||
|
||||
@ -27,7 +24,8 @@ public class MyApplication extends App {
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
appComponent = HttpManager.getAppComponent(baseUrl, new HeaderInterceptor(getApplicationContext()));
|
||||
appComponent1 = HttpManager.getAppComponent(baseUrl1, new HeaderInterceptor(getApplicationContext()));
|
||||
// appComponent1 = HttpManager.getAppComponent("https://22v1322u01.vicp.fun", new HeaderInterceptor(getApplicationContext()));
|
||||
appComponent1 = HttpManager.getAppComponent("http://192.168.6.20:12119", new HeaderInterceptor(getApplicationContext()));
|
||||
|
||||
initSdk();
|
||||
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户