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);