v1.10.0: 新增「当前商品选择页」——侧边栏购买入口改为插件内置 buy.html

- buy.html/css/js:实时拉取授权系统当前在售商品 → 选商品 → 选支付方式 → 下单
- background.js:新增 getCardTypes / authCreateOrder / authQueryOrder 三个消息与实现
- 支付成功自动发卡并激活本机;新增 alarms 权限做后台订单轮询(关页仍完成),12 小时未完成自动停
- sidepanel.js:licBuy 从跳 https://auth.88531.cn 改为打开内置 buy.html(不改服务端)
- manifest 1.9.0 → 1.10.0 + alarms 权限
- CHANGELOG/README 同步:新增条目、文件结构、内置购买页说明、Gitea 源
This commit is contained in:
jinghui committed 2026-10-20 18:55:05 +08:00
1 parent 6a697a2663
commit ec8bfda853
8 files changed
+460 -3

No files matched your search

+1 -1
View File
@@ -670,7 +670,7 @@ function refreshCustomVisibility() {
// 授权区
const buy = $("licBuy");
if (buy) buy.addEventListener("click", () => chrome.tabs.create({ url: "https://auth.88531.cn" }));
if (buy) buy.addEventListener("click", () => chrome.tabs.create({ url: chrome.runtime.getURL("buy.html") }));
const act = $("btnActivate");
if (act) act.addEventListener("click", activateCard);
const card = $("cardKey");