统一原生扫码超时契约

将二维码扫码超时提升到共享 HostBridge 契约

让 H5 facade 和测试复用共享扫码超时常量

增加原生壳门禁拦截扫码超时字面量回退

补充宿主壳方案文档和共享决策记录
This commit is contained in:
2026-06-19 14:01:29 +08:00
parent fb8c9c2880
commit 14f4ae4a65
9 changed files with 28 additions and 4 deletions
@@ -1795,12 +1795,18 @@ if (!h5HostBridgeSource.includes('HOST_BRIDGE_RUNTIME_REFRESH_TIMEOUT_MS,')) {
if (!h5HostBridgeSource.includes('HOST_BRIDGE_USER_INTERACTION_TIMEOUT_MS,')) {
throw new Error('H5 HostBridge facade must import shared user interaction timeout');
}
if (!h5HostBridgeSource.includes('HOST_BRIDGE_SCANNER_TIMEOUT_MS,')) {
throw new Error('H5 HostBridge facade must import shared scanner timeout');
}
if (h5HostBridgeSource.includes('HOST_RUNTIME_REFRESH_TIMEOUT_MS')) {
throw new Error('H5 HostBridge facade must not redeclare runtime refresh timeout');
}
if (h5HostBridgeSource.includes('timeoutMs: 30000')) {
throw new Error('H5 HostBridge facade must not redeclare user interaction timeout');
}
if (h5HostBridgeSource.includes('timeoutMs: 60000')) {
throw new Error('H5 HostBridge facade must not redeclare scanner timeout');
}
for (const snippet of [
'HOST_BRIDGE_DEFAULT_REQUEST_TIMEOUT_MS',
'HOST_BRIDGE_MAX_REQUEST_TIMEOUT_MS',