fix: 更新 H5 旧版主机为规范主机

This commit is contained in:
Booker
2026-05-26 22:00:17 +07:00
parent 2aa7a9dda9
commit 82b06f80b5
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ class AppConfig {
static const String appLogo = ''; static const String appLogo = '';
static const String canonicalWebHost = 'h5-im.imharry.work'; static const String canonicalWebHost = 'h5-im.imharry.work';
static const Set<String> legacyWebHosts = { static const Set<String> legacyWebHosts = {
'h5-test.imharry.work', 'h5-im.imharry.work',
}; };
static final Map<Environment, List<String>> _environmentHosts = { static final Map<Environment, List<String>> _environmentHosts = {

View File

@@ -51,7 +51,7 @@ void main() {
test('rewrites legacy H5 host main-frame URLs to the canonical host', () { test('rewrites legacy H5 host main-frame URLs to the canonical host', () {
final uri = Uri.parse( final uri = Uri.parse(
AppConfig.canonicalizeMainFrameUrl( AppConfig.canonicalizeMainFrameUrl(
'https://h5-test.imharry.work/login?from=runtime' 'https://h5-im.imharry.work/login?from=runtime'
'&shell_app_name=Old#shell_app_logo=old', '&shell_app_name=Old#shell_app_logo=old',
), ),
); );