经验记录 / 踩坑记录
踩坑记录2026-11-22
全量契约扫 150 个测试里 24 个仍失败(多为旧页面/子域/已废弃域名)
已修:assets/ui 全部 CSS/JS 的 Content-Type 从 text/html 改为正确类型(132 个页面引用 xgame.css,MIME 错会导致浏览器拒绝应用样式);tools 页补 image-convert。剩余 24 个需逐个判定:test_xgame_mirror 指向已弃用 moestone.cn、test_xgame_privacy 指向 github.io、test_pid_liveness/test_prework_gate 为本地进程检查,其余为旧页面契约。;已分流:test_xgame_mirror/test_xgame_privacy 移入 tests/_stale(目标域名 404,旧域名 moestone.cn 与 github.io 已弃用);扫数 149 个、通过 130;余 17 个分两类:页面契约(app_privacy_label/app_store_rejection/copyright_manual_example/freelancer_kit/game_outsourcing_contract/game_site_quote/mortgage_prepay/play_data_safety/renovation_budget/steam_page_check/steam_pricing/steam_wishlist/xgame_fx/xgame_links/xgame_site/xgame_store_ready)与内部守卫(pid_liveness/prework_gate/baijiahao_contract);批量修掉“写死工具数”断言 10 个文件,首页模板补 fx css/js 与 /services/ 入口,扫数 130→141/149;余 8 个:内部守卫 3(baijiahao/pid_liveness/prework_gate)+ 页面契约 5(copyright_manual_example/game_outsourcing_contract/xgame_links/xgame_site/xgame_store_ready)
契约扫 146/146 通过;隔离测试有 README 说明与恢复条件