fix: 更新 H5 旧版主机为规范主机
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
@@ -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',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user