feat: 添加媒体权限请求桥接脚本,优化 WebView 媒体权限处理逻辑

This commit is contained in:
Booker
2026-05-25 16:03:40 +07:00
parent 8d4012596d
commit 2960981b72
3 changed files with 151 additions and 12 deletions

View File

@@ -41,7 +41,8 @@ class AppConfig {
}) {
final uri = Uri.parse(url);
final queryParameters = Map<String, String>.from(uri.queryParameters)
..['flutter_shell'] = '1';
..['flutter_shell'] = '1'
..['shell_cache_bust'] = DateTime.now().millisecondsSinceEpoch.toString();
final trimmedName = (appName ?? AppConfig.appName).trim();
if (trimmedName.isNotEmpty) {