From e5d3c12c15bd8bd981dabcfab8f51434f250c868 Mon Sep 17 00:00:00 2001 From: Booker Date: Wed, 27 May 2026 12:05:38 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=20H5=20=E4=B8=BB?= =?UTF-8?q?=E6=9C=BA=E5=9C=B0=E5=9D=80=E4=B8=BA=E6=B5=8B=E8=AF=95=E7=8E=AF?= =?UTF-8?q?=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- lib/config/app_config.dart | 2 +- openim_common/lib/src/config.dart | 2 +- test/widget_test.dart | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index acbcd44..9df2ead 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Flutter WebView 套壳 App,默认加载: ```text -https://h5-im.imharry.work/ +https://h5-test.imharry.work/ ``` ## 本地打包 diff --git a/lib/config/app_config.dart b/lib/config/app_config.dart index 21ded60..7ef8e2d 100644 --- a/lib/config/app_config.dart +++ b/lib/config/app_config.dart @@ -6,7 +6,7 @@ class AppConfig { static const Environment currentEnvironment = Environment.production; static const String appName = '本地打包'; static const String appLogo = ''; - static const String canonicalWebHost = 'h5-im.imharry.work'; + static const String canonicalWebHost = 'h5-test.imharry.work'; static const Set legacyWebHosts = { 'h5-test.imharry.work', }; diff --git a/openim_common/lib/src/config.dart b/openim_common/lib/src/config.dart index aa825b2..47a7206 100644 --- a/openim_common/lib/src/config.dart +++ b/openim_common/lib/src/config.dart @@ -1,6 +1,6 @@ class Config { static const List defaultEnvironmentHosts = [ - 'h5-im.imharry.work', + 'h5-test.imharry.work', ]; static List get environmentHosts { diff --git a/test/widget_test.dart b/test/widget_test.dart index ad2dbbf..dc9ab82 100644 --- a/test/widget_test.dart +++ b/test/widget_test.dart @@ -19,7 +19,7 @@ void main() { ); expect(uri.scheme, 'https'); - expect(uri.host, 'h5-im.imharry.work'); + expect(uri.host, 'h5-test.imharry.work'); expect(uri.path, '/'); expect(uri.queryParameters.containsKey('flutter_shell'), isFalse); expect(uri.queryParameters.containsKey('shell_app_name'), isFalse); @@ -33,7 +33,7 @@ void main() { test('refreshes an H5 route URL without adding branding to the URL', () { final uri = Uri.parse( AppConfig.withFreshShellParams( - 'https://h5-im.imharry.work/login?from=runtime&shell_app_name=Old' + 'https://h5-test.imharry.work/login?from=runtime&shell_app_name=Old' '&flutter_shell=1&shell_cache_bust=1#shell_app_logo=old', ), ); @@ -57,7 +57,7 @@ void main() { ); expect(uri.scheme, 'https'); - expect(uri.host, 'h5-im.imharry.work'); + expect(uri.host, 'h5-test.imharry.work'); expect(uri.path, '/login'); expect(uri.queryParameters['from'], 'runtime'); expect(uri.queryParameters.containsKey('shell_app_name'), isFalse);