fix: 更新 H5 主机地址为测试环境

This commit is contained in:
Booker
2026-05-27 12:05:38 +07:00
parent bf4d031c60
commit e5d3c12c15
4 changed files with 6 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
Flutter WebView 套壳 App默认加载
```text
https://h5-im.imharry.work/
https://h5-test.imharry.work/
```
## 本地打包

View File

@@ -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<String> legacyWebHosts = {
'h5-test.imharry.work',
};

View File

@@ -1,6 +1,6 @@
class Config {
static const List<String> defaultEnvironmentHosts = [
'h5-im.imharry.work',
'h5-test.imharry.work',
];
static List<String> get environmentHosts {

View File

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