lucyOy/mini-program-doctor
0
小程序 / H5 报错修复助手 · Mini Program & H5 Error Doctor
粘贴一段报错 → 拿到「可能原因 + 排查顺序 + 能直接粘贴的代码」。 Paste an error from a WeChat mini-program or an H5 page, get the cause, the order to check things in, and a snippet you can paste back.
规则库本地匹配:不联网、不上传你贴的内容、不需要任何 API key。 Everything runs in your browser — nothing you paste leaves the page, and there is no model call behind it.
覆盖哪些报错 / What it covers
- 域名不在白名单 —
url not in domain list、request:fail - 页面白屏 / NPE —
Cannot read property ... of undefined - 登录态失效 —
code 已被使用、40029、40163 - 组件找不到 —
Component is not found - canvas 层级 / 原生组件遮挡 —
cover-view、canvas - iOS 键盘顶起页面 —
adjust-position、focus - 页面栈 10 层 —
navigateTo:fail、webviewId - setData 卡顿 — 长列表、频繁 setData
- 分包体积超限 —
subpackage、2M / 20M - 微信支付签名 —
签名错误、prepay_id、v2 / v3 - H5 CORS —
blocked by CORS policy - WeixinJSBridge 未就绪 —
WeixinJSBridge is not defined - 图片 403 防盗链 —
referrer、403 - 订阅消息 —
43101、47003 - TLS 证书 —
certificate、TLS version
命中的每一条都给:可能原因、排查顺序(按这个顺序查最快)、修复步骤、代码片段。 15 类之外的问题给通用排查法(6 条),不会硬套一个不相关的结论。
用过之后 / Feedback
结果下面有「有用 / 没用」两个按钮,计数只在本次会话里。哪条规则没帮上忙, 或者你的报错不在库里 —— 加微信 Lucy_2025V,把报错、复现步骤和截图一起发。
为什么是静态页 / Why static
这个 Space 是一个单文件网页(index.html),没有后端、没有构建、没有冷启动: 规则就在页面里,匹配是纯前端逻辑。所以它不会因为算力额度或排队而打不开。
相关 / Elsewhere
- GitHub(skill 本体、安装方式、更多文档):<https://github.com/LucyOyang2025/style-distill>
- Hugging Face 数据集(skill 文档全文):<https://huggingface.co/datasets/lucyOy/style-distill>
MIT.
