Files
youle_app_ohos/entry
lanterngamescnandClaude Opus 4.8 2100faaef7 M2(V2 阻塞性验证通过): setPathAllowingUniversalAccess 解决 file:// 跨域
T-M2-08 V2:真机验证 file:// 加载下 H5 fetch/XHR 取本地资源——首测被 CORS 拦截
(origin 'null',file 协议不在允许跨域 scheme 列表,正是框架 §7.3 预判风险)。
启用官方方案 WebviewController.setPathAllowingUniversalAccess([filesDir/tsgames]),
对 H5 完全透明(仍 file:// 加载)。复测:V2 fetch/XHR OK。

真机端到端链路全通(Pura 90 模拟器):启动编排→远程失败降级本地→解压内置包→
注入 app_data.js→file:// 加载大厅→跨域 fetch OK→桥握手→getTime 回执→nativeEcho
特殊字符往返一致。app_data 全局变量、Launchtype=0、appservice/setPostUrl 下发均正确。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 18:41:42 +08:00
..
2026-06-25 06:25:30 +08:00
2026-06-25 06:25:30 +08:00
2026-06-25 06:25:30 +08:00
2026-06-25 06:25:30 +08:00