根因:CardAuth 自动发卡只写 ca_cards(status=used + bind_info.machine_id), 从不写 ca_authorizations,而插件只查 /public/authorizations/query → 已购用户恒为空。 - checkLicense 增加卡密直验兜底:用本地记住的卡密调 /public/verify, 返回 valid/expire_time/is_permanent,直接作为授权状态与到期时间 - activateCard 成功即持久化 activeCardKey + activeCardInfo(换机/过期自动清除) - buy.js 不再用「永久」兜底到期时间(订单接口不返回 expire_time), 改为只在服务端明确给出时显示,否则显示套餐名 - 侧边栏已授权态显示套餐名 + 真实到期时间
32 lines
1.1 KiB
JSON
32 lines
1.1 KiB
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "B站评论助手",
|
|
"version": "1.10.3",
|
|
"description": "B站网页版关键词评论助手:按搜索关键词找视频,默认模拟真人(打开视频页、滚到评论区、逐字输入、点发布),也可快速API直发;支持下载当前页视频;带防重复记录、可中断执行与页面实时进度浮层。",
|
|
"permissions": ["storage", "tabs", "scripting", "sidePanel", "downloads", "declarativeNetRequest", "alarms"],
|
|
"host_permissions": [
|
|
"https://*.bilibili.com/*",
|
|
"https://api.bilibili.com/*",
|
|
"https://auth.88531.cn/*",
|
|
"http://*/*",
|
|
"https://*/*"
|
|
],
|
|
"background": { "service_worker": "background.js" },
|
|
"side_panel": { "default_path": "sidepanel.html" },
|
|
"action": { "default_title": "B站评论助手" },
|
|
"content_scripts": [
|
|
{
|
|
"matches": ["https://*.bilibili.com/*"],
|
|
"js": ["content.js"],
|
|
"css": ["content.css"],
|
|
"run_at": "document_idle"
|
|
}
|
|
],
|
|
"icons": {
|
|
"16": "icons/icon16.png",
|
|
"32": "icons/icon32.png",
|
|
"48": "icons/icon48.png",
|
|
"128": "icons/icon128.png"
|
|
}
|
|
}
|