packServer/extension/manifest.json
liufumingren 3570c6ad5c fix(extension): 修复插件配置接口 404(controller 方法名 config 被 this.config 顶掉)
Egg 的 BaseContextClass 构造时会把 `this.config = app.config` 挂到实例上,
控制器里叫 `config()` 的动作会被这个实例属性覆盖:路由能匹配上,但
egg-router 拿到的不是函数,最终静默返回 404「接口不存在」。

- controller/web/extension.js:动作改名为 show()
- router.js:/api/web/extension/config 指向 controller.web.extension.show
- 插件:同步周期文案改为「每 5 分钟」,版本 1.1.1

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-01 03:25:43 +08:00

53 lines
1.3 KiB
JSON

{
"manifest_version": 3,
"name": "云仓视频溯源 · 单号注入",
"version": "1.1.1",
"description": "在第三方 WMS / 后台页面里识别单号,就地加工成可点击的溯源入口;识别前缀与生效站点由管理员在后台统一维护,插件每 5 分钟自动同步。",
"minimum_chrome_version": "96",
"icons": {
"16": "icons/icon16.png",
"32": "icons/icon32.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
},
"permissions": ["storage", "alarms"],
"host_permissions": [
"http://localhost:17300/*",
"http://127.0.0.1:17300/*",
"https://pack.wms.gztbyc.com/*"
],
"action": {
"default_title": "云仓视频溯源",
"default_popup": "src/popup.html",
"default_icon": {
"16": "icons/icon16.png",
"32": "icons/icon32.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
}
},
"options_ui": {
"page": "src/options.html",
"open_in_tab": true
},
"background": {
"service_worker": "src/background.js"
},
"content_scripts": [
{
"matches": ["http://*/*", "https://*/*"],
"js": ["src/lib/rules.js", "src/content.js"],
"css": ["src/content.css"],
"run_at": "document_idle",
"all_frames": true
}
]
}