From f206977ad800fd262cc86a4d9d48e6dfca38da2a Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Fri, 23 Oct 2026 01:10:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(config):=20=E5=BC=80=E5=8F=91=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=9C=B0=E5=9D=80=E6=94=B9=E4=B8=BA=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E5=B1=80=E5=9F=9F=E7=BD=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Runner/Info.plist | 2 +- lib/core/config/app_config.dart | 2 +- test/config/server_endpoint_test.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index fbf9b23..80b4716 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -48,7 +48,7 @@ NSIncludesSubdomains - 192.168.31.187 + 10.43.47.1 NSExceptionAllowsInsecureHTTPLoads diff --git a/lib/core/config/app_config.dart b/lib/core/config/app_config.dart index 145f41c..d9ed463 100644 --- a/lib/core/config/app_config.dart +++ b/lib/core/config/app_config.dart @@ -14,7 +14,7 @@ class AppConfig { /// 开发调试默认服务地址,当前指向本机局域网 IP。 /// /// 换网络时只改这一行,地址不要带结尾斜杠。 - static const String devHostBaseUrl = 'http://192.168.31.187:8081'; + static const String devHostBaseUrl = 'http://10.43.47.1:8081'; /// 本机后端地址:通过 `adb reverse tcp:8081 tcp:8081` 映射到开发机, /// 探测可达时 App 直连本机服务;不可达时回落到公网地址。 diff --git a/test/config/server_endpoint_test.dart b/test/config/server_endpoint_test.dart index 6ecaee2..4bcce55 100644 --- a/test/config/server_endpoint_test.dart +++ b/test/config/server_endpoint_test.dart @@ -63,7 +63,7 @@ void main() { }); test('should_use_the_configured_local_address_for_device_default', () { - expect(AppConfig.devHostBaseUrl, 'http://192.168.31.187:8081'); + expect(AppConfig.devHostBaseUrl, 'http://10.43.47.1:8081'); }); test('should_skip_probe_when_compiled_override_is_set', () async {