v1.9.0: 试用策略改为 3 天/30 条(任一先到即止)+ 价值时刻提示 + 到期 24h 内 8 折 + 过期只锁评论
This commit is contained in:
1 parent
557f75fc54
commit
6a697a2663
6 files changed
+97
-18
No files matched your search
+26
-6
@@ -157,11 +157,25 @@ function refreshCustomVisibility() {
|
||||
sub.textContent = "感谢支持!全部功能可用";
|
||||
actRow.style.display = "none";
|
||||
if (buy) buy.style.display = "none";
|
||||
} else if (lic.trialLeftMs > 0) {
|
||||
} else if (lic.trialLeftMs > 0 && lic.trialCommentsLeft > 0) {
|
||||
icon.textContent = "🎁";
|
||||
text.textContent = "免费试用中 · 剩余 " + fmtRemain(lic.trialLeftMs);
|
||||
text.textContent = "免费试用中 · 剩余 " + fmtRemain(lic.trialLeftMs) + " · 还可评论 " + lic.trialCommentsLeft + " 条";
|
||||
text.style.color = "#e67e22";
|
||||
sub.textContent = "未授权可试用 1 天,购买卡密激活后不限时使用";
|
||||
sub.textContent = "未授权可试用 3 天 / 30 条评论,购买卡密激活后不限时不限量";
|
||||
actRow.style.display = "flex";
|
||||
if (buy) buy.style.display = "";
|
||||
} else if (lic.trialLeftMs > 0 && lic.trialCommentsLeft <= 0) {
|
||||
icon.textContent = "🎁";
|
||||
text.textContent = "试用期 " + lic.trialCommentsLimit + " 条评论已用完";
|
||||
text.style.color = "#e67e22";
|
||||
sub.textContent = "剩余时间还有效,但评论额度已用完;购买卡密激活后不限量(下载视频不受影响)";
|
||||
actRow.style.display = "flex";
|
||||
if (buy) buy.style.display = "";
|
||||
} else if (lic.inDiscount) {
|
||||
icon.textContent = "⏰";
|
||||
text.textContent = "试用已到期 · 24 小时内购买享 8 折(剩 " + fmtRemain(lic.discountLeftMs) + ")";
|
||||
text.style.color = "#e67e22";
|
||||
sub.textContent = "折扣窗口关闭后恢复原价,别错过";
|
||||
actRow.style.display = "flex";
|
||||
if (buy) buy.style.display = "";
|
||||
} else {
|
||||
@@ -180,7 +194,7 @@ function refreshCustomVisibility() {
|
||||
licState.trialLeftMs = Math.max(0, left);
|
||||
if (left <= 0) { renderLicense(); if (licTimer) { clearInterval(licTimer); licTimer = null; } return; }
|
||||
const text = $("licText");
|
||||
if (text) text.textContent = "免费试用中 · 剩余 " + fmtRemain(left);
|
||||
if (text) text.textContent = "免费试用中 · 剩余 " + fmtRemain(left) + " · 还可评论 " + licState.trialCommentsLeft + " 条";
|
||||
}
|
||||
|
||||
async function loadLicense() {
|
||||
@@ -517,9 +531,15 @@ function refreshCustomVisibility() {
|
||||
function onFinished(ev) {
|
||||
setRunning(false);
|
||||
if (ev.ok) {
|
||||
const msg = "执行完成:成功 " + (ev.done || 0) + " 条" + (ev.failed ? ",失败 " + ev.failed + " 条" : "");
|
||||
let msg = "本批 " + (ev.done || 0) + " 条已发布";
|
||||
if (ev.avgGapSec > 0) msg += ",平均间隔 " + ev.avgGapSec + " 秒";
|
||||
if (ev.failed) msg += ",失败 " + ev.failed + " 条";
|
||||
setStatus(msg);
|
||||
log("✅ " + msg, "ok");
|
||||
log("🎉 " + msg, "ok");
|
||||
// 试用中:刷新授权横幅,让用户立刻看到剩余额度
|
||||
if (licState && !licState.authorized && !licState.offline) {
|
||||
loadLicense();
|
||||
}
|
||||
} else {
|
||||
const msg = ev.reason || "执行未完成";
|
||||
setStatus(msg, true);
|
||||
|
||||
Reference in new issue
Block a user