creditdaddy 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +720 -21
- package/README.md +11 -2
- package/bin/creditdaddy.js +6 -0
- package/build.json +3 -3
- package/package.json +2 -2
- package/src/checkin.js +91 -3
- package/src/cookieSites.js +9 -9
- package/src/daemon.js +44 -6
- package/src/i18n/en.json +97 -1
- package/src/i18n/ja.json +97 -1
- package/src/i18n/ko.json +97 -1
- package/src/i18n/zh-TW.json +97 -1
- package/src/panel.html +330 -37
- package/src/zcodeAutoClaim.js +53 -6
- package/src/zcodeClient.js +55 -2
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
[](#下载)
|
|
14
14
|
[](#下载)
|
|
15
15
|
[](https://nodejs.org/)
|
|
16
|
-
[-a3552d)](LICENSE)
|
|
17
17
|
|
|
18
18
|
[下载](#下载) · [架构](#%EF%B8%8F-架构) · [功能](#功能) · [10Router 集成](#10router-集成) · [产品线说明](#产品线说明) · [快速开始](#快速开始) · [HTTP API](#本地-http-api) · [相关项目](#-相关项目) · [贡献者致谢](#-贡献者致谢) · [许可证](#-许可证)
|
|
19
19
|
|
|
@@ -59,6 +59,10 @@
|
|
|
59
59
|
|
|
60
60
|
</div>
|
|
61
61
|
|
|
62
|
+
> 🔒 **数据与隐私**:所有账号凭据、Cookie、Token 与状态数据**只存本机**(`~/.creditdaddy`,0600 权限 + 原子写 + 串行锁),**不上传、不外发、无遥测、无第三方依赖**。守护进程**仅监听 `127.0.0.1` 本机回环**,严格校验 Host 头防 DNS 重绑定、拦截跨站 Origin 杜绝 CSRF——面板即使开放到局域网也无法被外部利用。
|
|
63
|
+
>
|
|
64
|
+
> 本项目自 v1.8.1 起采用 **AGPL-3.0** 开源许可(v1.8.0 及更早版本维持 [MIT](https://github.com/techysy/CreditDaddy/blob/v1.8.0/LICENSE),不可溯及):源码完全开放,任何二次利用——包括以网络服务形态对外提供——都必须以同协议开源。这样选的根据不是「本地工具」而是**血缘**:签到能力移植自的 [10router](https://github.com/techysy/10router) 自 v1.8.1 起同为 AGPL-3.0,两个仓库的代码流是双向的(CD ← 10R 的 qoderCheckin 头构造与设备码登录、10R ← CD 的 Trae 签到链),同家族同协议后双向移植永远干净,无需逐笔核对作者与时间线的许可记账。MIT 时期的派生声明按其条款保留在 [LICENSE](LICENSE) 中,详见下方许可证段。
|
|
65
|
+
|
|
62
66
|
---
|
|
63
67
|
|
|
64
68
|
## 功能
|
|
@@ -442,4 +446,9 @@ npm test
|
|
|
442
446
|
|
|
443
447
|
## 📄 许可证
|
|
444
448
|
|
|
445
|
-
[MIT](LICENSE)
|
|
449
|
+
**AGPL-3.0**(自 v1.8.1 起)— 本项目在 v1.8.0 及更早版本使用 [MIT](https://github.com/techysy/CreditDaddy/blob/v1.8.0/LICENSE);自 v1.8.1 起改用 **GNU Affero General Public License v3.0**。
|
|
450
|
+
|
|
451
|
+
- **为什么**:本仓库的大量实现(WorkBuddy / CatPaw / DuMate 扫码 / meoo OAuth / qoder 9074 风控等协议逆向与签到链路)是真机调试的成果。AGPL 要求任何二次利用——包括网络服务形态——必须同样开源,防止这些成果被闭源拿走;而已发布的 MIT 版本不受影响。这与 [10Router](https://github.com/techysy/10router) 的选择同步(其自 v1.8.1 起 AGPL-3.0):两个仓库代码流双向(CD ← 10R 的 qoder 签到头与设备码登录、10R ← CD 的 Trae 签到链),同家族同协议让双向移植永远免许可记账。
|
|
452
|
+
- **为什么不以「本地工具」为由留 MIT**:AGPL §13 对面板 / 守护进程 / 本机 HTTP API 照样有约束(网络交互须供源)——「仅监听 127.0.0.1 所以无触发面」的理由不成立,不再使用。真正的理由是上面的血缘与保护。
|
|
453
|
+
- **方向不变**:[decolua/9router](https://github.com/decolua/9router) 为 MIT,吸收上游实现始终合法;本仓库 10R / 9R 派生部分(MIT 时期取得)的 MIT 声明按其条款保留在 [LICENSE](LICENSE) 中。
|
|
454
|
+
- **边界**:日常使用、自部署完全不受影响——AGPL 只约束二次利用(含网络服务形态)须同协议开源。对完整 LICENSE 的任何疑问或商业授权需求,请提 issue。
|
package/bin/creditdaddy.js
CHANGED
|
@@ -105,6 +105,12 @@ function installShutdown({ server, background }) {
|
|
|
105
105
|
// 关掉终端会发 SIGHUP。后台实例(stdout 不是 TTY)本来就该在终端消失后活着,
|
|
106
106
|
// 照着这个忽略;前台则当作用户要收摊。
|
|
107
107
|
process.on('SIGHUP', () => { if (process.stdout.isTTY) shutdown('SIGHUP'); });
|
|
108
|
+
// 最后防线(10router#114 同款):async handler 里漏网的同步 throw 会变
|
|
109
|
+
// unhandledRejection,Node ≥15 默认直接杀进程——daemon 被杀 = 签到调度器丢失、
|
|
110
|
+
// 状态文件原地(下次 start 误判已在运行)。只记日志不退出,进程活着就有救。
|
|
111
|
+
process.on('unhandledRejection', (e) => {
|
|
112
|
+
try { logger.error('CLI', '未处理的 Promise 拒绝(进程保持运行):{err}', { err: e instanceof Error ? (e.stack || e.message) : String(e) }); } catch {}
|
|
113
|
+
});
|
|
108
114
|
}
|
|
109
115
|
|
|
110
116
|
async function main() {
|
package/build.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "creditdaddy",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "CreditDaddy — Qoder / WorkBuddy / ZCode / mirasim / 妙手 / Trae / MiniMax / ModelScope / 豆包 Doubao / 讯飞 Loomy / DuMate 百度搭子 / WPS 灵犀 / Meoo 秒悟多账号本地管理与每日积分自动签到助手,及 10Router 供应商 Cookie 会话捕获与外部配额(Token Harbor / 小米 MiMo / River / ModelScope 魔搭 / LongCat)",
|
|
5
5
|
"homepage": "https://github.com/techysy/CreditDaddy",
|
|
6
6
|
"repository": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"release-check": "bash scripts/release-check.sh",
|
|
28
28
|
"prepack": "node scripts/gen-build-info.js build.json"
|
|
29
29
|
},
|
|
30
|
-
"license": "
|
|
30
|
+
"license": "AGPL-3.0-only",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"opencc-js": "1.4.2"
|
|
33
33
|
}
|
package/src/checkin.js
CHANGED
|
@@ -14,6 +14,7 @@ import { clearQuotaMark } from './zcodeGateway.js';
|
|
|
14
14
|
import {
|
|
15
15
|
autoClaimEnabled, autoClaimUntil, enableAutoClaimFor, setAutoClaimEnabled,
|
|
16
16
|
claimIntervalMin, claimWindowMin,
|
|
17
|
+
dailyClaimPlan, markDailyClaimRan,
|
|
17
18
|
warmZcodeAppVersion,
|
|
18
19
|
} from './zcodeClient.js';
|
|
19
20
|
import { warmWorkbuddyClientPath } from './workbuddyLocal.js';
|
|
@@ -66,10 +67,91 @@ export async function getSchedulerInfo() {
|
|
|
66
67
|
nextTickAt: enabled ? zcodeNextTickAt : null,
|
|
67
68
|
lastTick: zcodeLastTick,
|
|
68
69
|
ticking: zcodeTicking,
|
|
70
|
+
dailyPlan: zcodeDailyPlanInfo(),
|
|
69
71
|
},
|
|
70
72
|
};
|
|
71
73
|
}
|
|
72
74
|
|
|
75
|
+
// ── ZCode 每日定时计划:每天 HH:MM 自动开启一轮「自动领取计划」窗口(issue: 用户要求 8 点定时轮询)──
|
|
76
|
+
// 与手动「保存并启用」同一条链路(enableZcodeAutoClaimWindow),只是到点自动按下那个按钮。
|
|
77
|
+
// 时钟独立于自动领取开关:即使当前窗口正在运行(或已手动关闭),时钟照走,次日照常触发。
|
|
78
|
+
let dailyPlanTimerHandle = null;
|
|
79
|
+
let dailyPlanNextAt = null;
|
|
80
|
+
|
|
81
|
+
/** 本地日历日 key(防同日重触发;与签到业务日无关——计划锚的是用户挂机的本地时钟) */
|
|
82
|
+
function localDayKey(nowMs = Date.now()) {
|
|
83
|
+
const d = new Date(nowMs);
|
|
84
|
+
return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}`;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** 距今天 HH:MM 的毫秒数(已过则取明天同一时刻) */
|
|
88
|
+
function msUntilDailyPlanTime(nowMs = Date.now()) {
|
|
89
|
+
const { hour, minute } = dailyClaimPlan();
|
|
90
|
+
const d = new Date(nowMs);
|
|
91
|
+
const target = new Date(d.getFullYear(), d.getMonth(), d.getDate(), hour, minute, 0, 0);
|
|
92
|
+
if (target.getTime() <= nowMs) target.setDate(target.getDate() + 1);
|
|
93
|
+
return target.getTime() - nowMs;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** 每日计划下一次实际触发时刻(展示用):今天未跑且 HH:MM 未到 → 今天到点;
|
|
97
|
+
* 已过点未跑 → 下一次唤醒(≤1h 内补跑);今天已跑 → 明天同一时刻。
|
|
98
|
+
* 必须与 setTimeout 的 1h 钳制解耦——2026-11-17 实测:把「下次唤醒」当 nextRunAt
|
|
99
|
+
* 展示,用户设 20:00 面板却显示 13:03,误以为计划没保存、要「保存并启用」才行。 */
|
|
100
|
+
function nextDailyPlanRunAt(nowMs = Date.now()) {
|
|
101
|
+
const plan = dailyClaimPlan();
|
|
102
|
+
const d = new Date(nowMs);
|
|
103
|
+
const todayTarget = new Date(d.getFullYear(), d.getMonth(), d.getDate(), plan.hour, plan.minute, 0, 0).getTime();
|
|
104
|
+
if (plan.lastRunDay !== localDayKey(nowMs)) {
|
|
105
|
+
if (todayTarget > nowMs) return todayTarget;
|
|
106
|
+
return nowMs + 60 * 60 * 1000; // 已过点未跑:下一次(≤1h)唤醒补跑
|
|
107
|
+
}
|
|
108
|
+
return todayTarget + 24 * 3600 * 1000; // 今天已跑:明天同一时刻
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function zcodeDailyPlanInfo() {
|
|
112
|
+
const plan = dailyClaimPlan();
|
|
113
|
+
return { ...plan, nextRunAt: plan.enabled ? dailyPlanNextAt : null };
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function clearDailyPlanTimers() {
|
|
117
|
+
if (dailyPlanTimerHandle) clearTimeout(dailyPlanTimerHandle);
|
|
118
|
+
dailyPlanTimerHandle = null;
|
|
119
|
+
dailyPlanNextAt = null;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/** 每日计划时钟:enabled 才排;到点时若本业务日还没跑过 → 拉起一轮窗口并记账。
|
|
123
|
+
* 时刻对不上(比如触发瞬间进程刚起)没关系——下一分钟重排永远兜得住。 */
|
|
124
|
+
function syncDailyPlanScheduler() {
|
|
125
|
+
clearDailyPlanTimers();
|
|
126
|
+
if (!dailyClaimPlan().enabled) return;
|
|
127
|
+
const delay = Math.min(Math.max(msUntilDailyPlanTime(), 1000), 60 * 60 * 1000);
|
|
128
|
+
dailyPlanNextAt = new Date(nextDailyPlanRunAt()).toISOString();
|
|
129
|
+
dailyPlanTimerHandle = setTimeout(() => {
|
|
130
|
+
dailyPlanTimerHandle = null;
|
|
131
|
+
dailyPlanNextAt = null;
|
|
132
|
+
try {
|
|
133
|
+
const plan = dailyClaimPlan();
|
|
134
|
+
const today = localDayKey();
|
|
135
|
+
const now = new Date();
|
|
136
|
+
const due = now.getHours() === plan.hour || (now.getHours() * 60 + now.getMinutes()) >= plan.hour * 60 + plan.minute;
|
|
137
|
+
if (due && plan.lastRunDay !== today) {
|
|
138
|
+
markDailyClaimRan(today);
|
|
139
|
+
enableZcodeAutoClaimWindow();
|
|
140
|
+
logger.info('ZCODE-CLAIM', '每日定时计划 {hh}:{mm} 触发——自动领取窗口已开启(周期 {iv} 分钟,{win})', { hh: String(plan.hour).padStart(2, '0'), mm: String(plan.minute).padStart(2, '0'), iv: claimIntervalMin(), win: claimWindowMin() > 0 ? '运行 ' + claimWindowMin() + ' 分钟' : '一直运行' });
|
|
141
|
+
}
|
|
142
|
+
} catch (err) {
|
|
143
|
+
logger.warn('ZCODE-CLAIM', '每日定时计划触发失败:{err}', { err: err?.message || err });
|
|
144
|
+
}
|
|
145
|
+
syncDailyPlanScheduler();
|
|
146
|
+
}, delay);
|
|
147
|
+
dailyPlanTimerHandle.unref?.();
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/** 面板 / API 改了每日计划后重排(enableZcodeAutoClaimWindow 同款对外入口)。 */
|
|
151
|
+
export function refreshZcodeDailyPlan() {
|
|
152
|
+
syncDailyPlanScheduler();
|
|
153
|
+
}
|
|
154
|
+
|
|
73
155
|
/** 签到业务日。Qoder 以 10:00 (UTC+8) 为界,其余产品以 00:00 (UTC+8) 为界;默认 Qoder 口径(/api/status 展示用)。 */
|
|
74
156
|
export function dayKey(nowMs = Date.now(), provider = 'qoder') {
|
|
75
157
|
const h = DAY_REFRESH_HOUR_UTC8[provider] ?? 0;
|
|
@@ -157,7 +239,7 @@ function syncZcodeScheduler(startFresh = false) {
|
|
|
157
239
|
}
|
|
158
240
|
}
|
|
159
241
|
|
|
160
|
-
function runZcodeTick(accountIds, { force = false } = {}) {
|
|
242
|
+
function runZcodeTick(accountIds, { force = false, manual = false } = {}) {
|
|
161
243
|
const run = zcodeQueue.then(async () => {
|
|
162
244
|
if (!force && !autoClaimEnabled()) return { results: [], summary: 'ZCode 自动领取已关闭' };
|
|
163
245
|
zcodeTicking = true;
|
|
@@ -170,7 +252,7 @@ function runZcodeTick(accountIds, { force = false } = {}) {
|
|
|
170
252
|
if (!force && !autoClaimEnabled()) break;
|
|
171
253
|
const label = account.name || account.uid || account.id;
|
|
172
254
|
try {
|
|
173
|
-
const outcome = await zcodeAutoClaim(account);
|
|
255
|
+
const outcome = await zcodeAutoClaim(account, { source: manual ? 'manual' : 'auto' });
|
|
174
256
|
if (!outcome) continue;
|
|
175
257
|
if (outcome.status === 'checked-in' || outcome.status === 'partial') {
|
|
176
258
|
claimedIds.push(account.id);
|
|
@@ -205,8 +287,11 @@ function runZcodeTick(accountIds, { force = false } = {}) {
|
|
|
205
287
|
}
|
|
206
288
|
|
|
207
289
|
/** 手动触发一次 ZCode 资格轮询(面板单账号 / 全部领取走这里),与定时轮共用同一队列;手动轮不受开关限制。 */
|
|
290
|
+
/** 手动轮(用户点卡片「立即领取」/「领取全部 ZCode」):source='manual' 绕过暂休窗口——
|
|
291
|
+
* 1005 额满暂休与验证码退避只保护自动轮不空打,不该挡用户的手(手动被静默吞掉、
|
|
292
|
+
* 连结果都不给,比多打一次 claim 更伤信任;2026-11-17 用户实测反馈)。 */
|
|
208
293
|
export function pollZcodeNow(accountIds) {
|
|
209
|
-
return runZcodeTick(accountIds && accountIds.length ? new Set(accountIds) : null, { force: true });
|
|
294
|
+
return runZcodeTick(accountIds && accountIds.length ? new Set(accountIds) : null, { force: true, manual: true });
|
|
210
295
|
}
|
|
211
296
|
|
|
212
297
|
async function getDoneMap(state) {
|
|
@@ -398,6 +483,8 @@ export async function startScheduler() {
|
|
|
398
483
|
logger.info('CHECKIN', '自动签到已关闭(面板设置可开启)');
|
|
399
484
|
}
|
|
400
485
|
syncZcodeScheduler();
|
|
486
|
+
// 每日定时计划时钟:enabled 时到点自动拉起一轮领取窗口(重启后从 zcode-net.json 恢复)
|
|
487
|
+
syncDailyPlanScheduler();
|
|
401
488
|
}
|
|
402
489
|
|
|
403
490
|
/** 面板修改全局自动签到开关 / 频率后重同步(daemon PUT /api/settings 调用)。 */
|
|
@@ -412,6 +499,7 @@ export function stopScheduler() {
|
|
|
412
499
|
timerHandle = null;
|
|
413
500
|
nextTickAt = null;
|
|
414
501
|
clearZcodeTimers();
|
|
502
|
+
clearDailyPlanTimers();
|
|
415
503
|
}
|
|
416
504
|
|
|
417
505
|
|
package/src/cookieSites.js
CHANGED
|
@@ -87,7 +87,7 @@ export const COOKIE_SITES = [
|
|
|
87
87
|
// issue #24:捕获时顺手解析网页读数,存 meta.quotaSnapshot 供额度推送消费
|
|
88
88
|
quota: { fromHtml: parseTokenHarborQuota },
|
|
89
89
|
accountName: 'Token Harbor',
|
|
90
|
-
hint: '登录后 dashboard 才有 Free allowance
|
|
90
|
+
hint: '登录后 dashboard 才有 Free allowance 配额;凭据只存本机,同步到 10Router 点亮卡片。',
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
id: 'xiaomi-mimo',
|
|
@@ -102,7 +102,7 @@ export const COOKIE_SITES = [
|
|
|
102
102
|
accept: 'application/json, text/plain, */*',
|
|
103
103
|
},
|
|
104
104
|
accountName: '小米 MiMo',
|
|
105
|
-
hint: '登录后自动抓取 UID
|
|
105
|
+
hint: '登录后自动抓取 UID 与充值余额;推送到 10Router 显示余额卡片。',
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
id: 'modelscope',
|
|
@@ -117,7 +117,7 @@ export const COOKIE_SITES = [
|
|
|
117
117
|
verify: 'api',
|
|
118
118
|
accountName: 'ModelScope',
|
|
119
119
|
identity: { fromHtml: /[\w.+-]+@[\w-]+\.[\w.]+/ },
|
|
120
|
-
hint: '
|
|
120
|
+
hint: '登录后自动抓取魔方(Magicube)余额;每日额度自动发放无需签到,余额数字推 10Router 出卡。',
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
id: 'river',
|
|
@@ -135,7 +135,7 @@ export const COOKIE_SITES = [
|
|
|
135
135
|
cookieUrls: ['https://console.river.ai', 'https://auth.console.river.ai', 'https://login.console.river.ai'],
|
|
136
136
|
verify: 'api',
|
|
137
137
|
accountName: 'River AI',
|
|
138
|
-
hint: '
|
|
138
|
+
hint: '登录后自动抓取会话与 Billing 余额($25 免费额度);推送 10Router 只带余额数字,会话过期自动刷新。',
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
id: 'longcat',
|
|
@@ -152,7 +152,7 @@ export const COOKIE_SITES = [
|
|
|
152
152
|
},
|
|
153
153
|
verify: 'api',
|
|
154
154
|
accountName: 'LongCat',
|
|
155
|
-
hint: '
|
|
155
|
+
hint: '登录后自动抓取 Token 资源包余量与逐包明细;推送 10Router 只带 token 数字,会话 cookie 只存本机。',
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
id: 'doubao',
|
|
@@ -168,7 +168,7 @@ export const COOKIE_SITES = [
|
|
|
168
168
|
// 返回残缺数据(额度恒 0、签到状态不可信),额度可见也做不实——不加会话捕获探测,
|
|
169
169
|
// 只在面板出示快捷按钮。
|
|
170
170
|
entryOnly: true, // 只出「打开豆包」按钮,无会话捕获 / 无探测 / 无账号行
|
|
171
|
-
hint: '
|
|
171
|
+
hint: '登录后捕获会话,CD 只读展示体验额度与签到状态(+200/天);签到请在「打开豆包」里手动完成(活动在客户端内,CD 不代签)。凭据只存本机。'
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
id: 'lingxi',
|
|
@@ -182,7 +182,7 @@ export const COOKIE_SITES = [
|
|
|
182
182
|
verify: 'api',
|
|
183
183
|
cookieUrls: ['https://lingxi.kdocs.cn', 'https://www.kdocs.cn'],
|
|
184
184
|
accountName: 'WPS 灵犀',
|
|
185
|
-
hint: '每日自动签到(+100 灵点,七天一轮第七天 200)+ 推送 10Router
|
|
185
|
+
hint: '每日自动签到(+100 灵点,七天一轮第七天 200)+ 推送 10Router 出余额卡。多号分别捕获即分行并存。',
|
|
186
186
|
},
|
|
187
187
|
// Meoo 秒悟回退网页会话线(1.8.0 实测:OAuth refresh token 单次轮换,与 10R 共享后
|
|
188
188
|
// 任一侧轮换即作废另一侧副本——CD 端恒 invalid_token 无法自动续期)。凭据 =
|
|
@@ -202,7 +202,7 @@ export const COOKIE_SITES = [
|
|
|
202
202
|
cookieUrls: ['https://meoo.com'],
|
|
203
203
|
accountName: 'Meoo 秒悟',
|
|
204
204
|
no10rSync: true, // 10R 的 meoo 连接由 10R 侧自行管理(扫码 / 控制面 Key),CD 不重复出卡
|
|
205
|
-
hint: '登录 meoo.com
|
|
205
|
+
hint: '登录 meoo.com(阿里云账号 + 短信)后捕获会话;CD 每日自动领取首登积分并展示余额。会话失效时请重新登录捕获,Cookie 只存本机。',
|
|
206
206
|
},
|
|
207
207
|
|
|
208
208
|
{
|
|
@@ -220,7 +220,7 @@ export const COOKIE_SITES = [
|
|
|
220
220
|
verify: 'api',
|
|
221
221
|
cookieUrls: ['https://console.bce.baidu.com', 'https://login.bce.baidu.com', 'https://www.dumate.cn'],
|
|
222
222
|
accountName: 'DuMate',
|
|
223
|
-
hint: '
|
|
223
|
+
hint: '在登录窗完成个人版登录后自动捕获会话;也可走「添加账号 → 本机导入」。CD 每日自动领取登录赠送积分,可一键同步到 10Router。',
|
|
224
224
|
hideFromWebPage: true,
|
|
225
225
|
},
|
|
226
226
|
// ⚠ 码道 CodeArts(issue #40)已于 2026-10-30 撤下,不再提供:
|
package/src/daemon.js
CHANGED
|
@@ -71,10 +71,13 @@ import { liveToAccount as loomyLiveAccount, hardSwitchLoomy, currentLoomyUid, de
|
|
|
71
71
|
import { liveToAccount as dumateLiveAccount, detectDumate, readDumateCredential, hardSwitchDumate } from './dumateLocal.js';
|
|
72
72
|
import * as minimaxGateway from './minimaxGateway.js';
|
|
73
73
|
import * as traeGateway from './traeGateway.js';
|
|
74
|
-
import { fetchClaimPlans, claimPlan, fetchCaptchaConfig, proxyFirst, setProxyFirst, proxyUrl, setProxyUrl, autoClaimEnabled, autoClaimUntil, setAutoClaimEnabled, claimIntervalMin, setClaimIntervalMin, claimWindowMin, setClaimWindowMin } from './zcodeClient.js';
|
|
74
|
+
import { fetchClaimPlans, claimPlan, fetchCaptchaConfig, proxyFirst, setProxyFirst, proxyUrl, setProxyUrl, autoClaimEnabled, autoClaimUntil, setAutoClaimEnabled, claimIntervalMin, setClaimIntervalMin, claimWindowMin, setClaimWindowMin, dailyClaimPlan, setDailyClaimPlan } from './zcodeClient.js';
|
|
75
75
|
import { exportAccounts, buildExportPayload, parseImport, TransferError } from './transfer.js';
|
|
76
76
|
import { syncAccountsTo10r } from './tenrouterAccounts.js';
|
|
77
|
-
import { runCheckinTick, getSchedulerInfo, dayKey, enableZcodeAutoClaimWindow, refreshZcodeScheduler, pollZcodeNow, resyncAutoCheckinScheduler } from './checkin.js';
|
|
77
|
+
import { runCheckinTick, getSchedulerInfo, dayKey, enableZcodeAutoClaimWindow, refreshZcodeScheduler, refreshZcodeDailyPlan, pollZcodeNow, resyncAutoCheckinScheduler, zcodeDailyPlanInfo } from './checkin.js';
|
|
78
|
+
/** 每日定时计划的对外形状(GET/PUT /api/zcode/net 都回它;nextRunAt 由 checkin.js 时钟维护)。
|
|
79
|
+
* 直读时钟而非 /api/status 的缓存——PUT 保存后面板要立刻看到实排的下次触发时刻。 */
|
|
80
|
+
const getSchedulerDailyPlan = () => zcodeDailyPlanInfo();
|
|
78
81
|
import { detectQoderApps, readQoderAppAccounts, riskIdentityAvailable, riskIdentitySource, switchTo as qoderSwitchTo, qoderRunningCached, terminateQoder } from './qoderApp.js';
|
|
79
82
|
import { umidInfo, installUmid } from './qoderUmid.js';
|
|
80
83
|
import * as tenrouter from './tenrouter.js';
|
|
@@ -407,7 +410,7 @@ async function reprobeCookieAccount(site, a) {
|
|
|
407
410
|
cookieSiteSession: { cookie, capturedAt: hit.meta?.cookieSiteSession?.capturedAt || now },
|
|
408
411
|
...(uid && !hit.meta?.identityHash ? { identityHash: identityHashOf(`uid:${uid}`) } : {}),
|
|
409
412
|
...(Number.isFinite(st.balance) ? { quotaSnapshot: { used: 0, total: st.balance, isCreditBalance: true, at: now } } : {}),
|
|
410
|
-
...(Array.isArray(st.packs) && st.packs.length ? { lingxiPacks: { packs: st.packs, at: now } } : {}),
|
|
413
|
+
...(Array.isArray(st.packs) && st.packs.length ? { lingxiPacks: { packs: st.packs, at: now } } : {}),
|
|
411
414
|
};
|
|
412
415
|
if (uid) {
|
|
413
416
|
hit.uid = String(uid);
|
|
@@ -1094,6 +1097,7 @@ async function handleApi(req, res, url) {
|
|
|
1094
1097
|
proxyFirst: proxyFirst(), proxyUrlMasked: masked,
|
|
1095
1098
|
autoClaim: ac, autoClaimUntil: ac ? autoClaimUntil() : null,
|
|
1096
1099
|
claimIntervalMin: claimIntervalMin(), claimWindowMin: claimWindowMin(),
|
|
1100
|
+
dailyPlan: getSchedulerDailyPlan(),
|
|
1097
1101
|
hasEnvProxy: Boolean(process.env.HTTPS_PROXY || process.env.https_proxy || process.env.HTTP_PROXY || process.env.http_proxy),
|
|
1098
1102
|
});
|
|
1099
1103
|
}
|
|
@@ -1106,9 +1110,25 @@ async function handleApi(req, res, url) {
|
|
|
1106
1110
|
if (body?.claimIntervalMin !== undefined) setClaimIntervalMin(body.claimIntervalMin);
|
|
1107
1111
|
if (body?.claimWindowMin !== undefined) setClaimWindowMin(body.claimWindowMin);
|
|
1108
1112
|
if (body?.claimIntervalMin !== undefined || body?.claimWindowMin !== undefined) refreshZcodeScheduler();
|
|
1113
|
+
// 每日定时计划(enabled / hour / minute):落 zcode-net.json,时钟独立重排
|
|
1114
|
+
if (body?.dailyPlan !== undefined && typeof body.dailyPlan === 'object') {
|
|
1115
|
+
setDailyClaimPlan(body.dailyPlan);
|
|
1116
|
+
refreshZcodeDailyPlan();
|
|
1117
|
+
}
|
|
1109
1118
|
if (body?.autoClaim !== undefined) {
|
|
1110
1119
|
if (body.autoClaim === true) enableZcodeAutoClaimWindow(); // 开 = 按「自动领取计划」启动(2 分钟后首轮)
|
|
1111
|
-
else {
|
|
1120
|
+
else {
|
|
1121
|
+
// 关 = 立即停表。用户手动停用的意图是「别再撞了」(2026-11-17 实测:账号无法
|
|
1122
|
+
// 领取还在被每日计划反复拉起撞接口)——同一次请求里没有显式重开计划时,
|
|
1123
|
+
// 把每日定时计划一并关掉;明天要继续就再到弹窗里勾上,不搞隔夜复活。
|
|
1124
|
+
setAutoClaimEnabled(false);
|
|
1125
|
+
refreshZcodeScheduler();
|
|
1126
|
+
if (body?.dailyPlan === undefined && dailyClaimPlan().enabled) {
|
|
1127
|
+
setDailyClaimPlan({ enabled: false });
|
|
1128
|
+
refreshZcodeDailyPlan();
|
|
1129
|
+
logger.info('DAEMON', 'ZCode 每日定时计划已随手动停用一并关闭(防隔夜复活继续撞接口)', {});
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1112
1132
|
}
|
|
1113
1133
|
} catch (e) { return json(res, 400, { error: e.message }); }
|
|
1114
1134
|
const ac = autoClaimEnabled();
|
|
@@ -1116,6 +1136,7 @@ async function handleApi(req, res, url) {
|
|
|
1116
1136
|
return json(res, 200, {
|
|
1117
1137
|
proxyFirst: proxyFirst(), autoClaim: ac, autoClaimUntil: ac ? autoClaimUntil() : null,
|
|
1118
1138
|
claimIntervalMin: claimIntervalMin(), claimWindowMin: claimWindowMin(),
|
|
1139
|
+
dailyPlan: getSchedulerDailyPlan(),
|
|
1119
1140
|
});
|
|
1120
1141
|
}
|
|
1121
1142
|
|
|
@@ -1439,6 +1460,7 @@ async function handleApi(req, res, url) {
|
|
|
1439
1460
|
lingxiPacks: a.meta?.lingxiPacks || null, // 智点资源包快照(issue #53)
|
|
1440
1461
|
meooGrants: a.meta?.meooGrants || null, // Meoo 积分逐笔发放快照(带到期日)
|
|
1441
1462
|
lastProbe: a.meta?.lastProbe || null, // 呼吸灯数据源:ok / warn / dead + 失败原因
|
|
1463
|
+
cookieSlot: Number(a.meta?.cookieSlot) > 1 ? Math.trunc(Number(a.meta?.cookieSlot)) : 1, // 会话槽号(槽 1 = 既有分区,老行缺省)
|
|
1442
1464
|
}));
|
|
1443
1465
|
const latest = rows.reduce((t, r) => (r.capturedAt && (!t || r.capturedAt > t) ? r.capturedAt : t), null);
|
|
1444
1466
|
return {
|
|
@@ -1456,6 +1478,11 @@ async function handleApi(req, res, url) {
|
|
|
1456
1478
|
const site = getSite(siteId);
|
|
1457
1479
|
if (!site) return json(res, 404, { error: `站点 ${siteId} 未配置` });
|
|
1458
1480
|
const body = await readBody(req).catch(() => ({}));
|
|
1481
|
+
// 会话槽(Chrome 多 profile 等价物):槽 1 = 既有分区 cookie-site-<id>(存量登录态零迁移),
|
|
1482
|
+
// 槽 N≥2 = cookie-site-<id>-sN。捕获窗登录在哪个槽,收割上报就带哪个 slot——落账号
|
|
1483
|
+
// meta.cookieSlot,行上显示「会话 N」徽章;不同槽各自是独立的持久登录分区(多池并存)。
|
|
1484
|
+
const cookieSlot = Number(body?.slot) === Number(body?.slot) && Number(body?.slot) >= 1 && Number(body?.slot) <= 9
|
|
1485
|
+
? Math.trunc(Number(body?.slot)) : 1;
|
|
1459
1486
|
const cookie = String(body?.cookie || '').trim();
|
|
1460
1487
|
// localStorage 凭据线(river = WorkOS SPA 会话):cookie 无关,探测走站点自有 API
|
|
1461
1488
|
const storage = (body?.storage && typeof body.storage === 'object' && !Array.isArray(body.storage)) ? body.storage : {};
|
|
@@ -1648,7 +1675,7 @@ async function handleApi(req, res, url) {
|
|
|
1648
1675
|
}
|
|
1649
1676
|
identity = lxUid ? `uid:${lxUid}` : null; // 有 uid → 哈希归户;无 → 单例兜底
|
|
1650
1677
|
quotaSnapshot = { used: 0, total: Number(lxStatus.balance) || 0, isCreditBalance: true };
|
|
1651
|
-
lxSnapshot = Array.isArray(lxStatus.packs) && lxStatus.packs.length ? { packs: lxStatus.packs, at: now } : null;
|
|
1678
|
+
lxSnapshot = Array.isArray(lxStatus.packs) && lxStatus.packs.length ? { packs: lxStatus.packs, at: now } : null;
|
|
1652
1679
|
logger.info('COOKIE-SITE', '{name} 探测通过({identity},签到{signed},灵点 {balance})', { name: site.name, identity: lxUid ? 'uid ' + lxUidMasked : '无 uid(单例)', signed: lxStatus.checkedIn ? '已签' : '未签', balance: Number.isFinite(lxStatus.balance) ? lxStatus.balance : '—' });
|
|
1653
1680
|
} catch (lxErr) {
|
|
1654
1681
|
logger.warn('COOKIE-SITE', '{name} 任务列表抓取异常:{err}', { name: site.name, err: lxErr.message });
|
|
@@ -1726,6 +1753,7 @@ async function handleApi(req, res, url) {
|
|
|
1726
1753
|
let accountId = null;
|
|
1727
1754
|
await withAccounts((list) => {
|
|
1728
1755
|
const hit = list.find((a) => a.provider === site.provider && a.meta?.cookieSiteId === site.id
|
|
1756
|
+
&& (Number(a.meta?.cookieSlot) > 1 ? Math.trunc(Number(a.meta?.cookieSlot)) : 1) === cookieSlot
|
|
1729
1757
|
&& (ih ? a.meta?.identityHash === ih : !a.meta?.identityHash));
|
|
1730
1758
|
// 自动行名:按站点取「产品名 (身份)」形状。此前是四层嵌套三元,增删一个站点就得数括号
|
|
1731
1759
|
// (撤码道时正是因此改出语法错误)——改成 if 链,增删站点只动一行
|
|
@@ -1742,6 +1770,7 @@ async function handleApi(req, res, url) {
|
|
|
1742
1770
|
const autoName = (row) => { if (canAutoRename(site, row)) row.name = accName; };
|
|
1743
1771
|
if (hit) {
|
|
1744
1772
|
hit.token = cred;
|
|
1773
|
+
hit.meta.cookieSlot = cookieSlot > 1 ? cookieSlot : undefined; // 槽 1 是默认(不落标记,老行零迁移)
|
|
1745
1774
|
if (mimoUserId) { hit.uid = mimoUserId; autoName(hit); }
|
|
1746
1775
|
if (riverUid) { hit.uid = riverUid; autoName(hit); }
|
|
1747
1776
|
if (riverSession?.expiresAt) hit.expiresAt = riverSession.expiresAt;
|
|
@@ -1778,6 +1807,7 @@ async function handleApi(req, res, url) {
|
|
|
1778
1807
|
source: 'web-session',
|
|
1779
1808
|
meta: {
|
|
1780
1809
|
cookieSiteId: site.id,
|
|
1810
|
+
...(cookieSlot > 1 ? { cookieSlot } : {}), // 槽 1 不落标记(=缺省,老行零迁移)
|
|
1781
1811
|
cookieSiteSession: { cookie, capturedAt: now },
|
|
1782
1812
|
...(ih ? { identityHash: ih } : {}),
|
|
1783
1813
|
...quotaMeta,
|
|
@@ -2520,7 +2550,15 @@ export async function startDaemon(port = DEFAULT_PORT, host = '127.0.0.1') {
|
|
|
2520
2550
|
fs.readFile(PANEL_FILE, 'utf8').then((h) => { panelHtml = h; }).catch(() => {});
|
|
2521
2551
|
|
|
2522
2552
|
const server = http.createServer(async (req, res) => {
|
|
2523
|
-
|
|
2553
|
+
// URL 解析必须独立收口(10router#114 同款崩溃面):畸形请求行让 new URL 同步 throw,
|
|
2554
|
+
// 在 async handler 里变成 unhandledRejection → Node ≥15 默认杀进程——面板进程被杀
|
|
2555
|
+
// = 全部签到调度器丢失。坏请求一律 400,不让它离开这里。
|
|
2556
|
+
let url;
|
|
2557
|
+
try {
|
|
2558
|
+
url = new URL(req.url, 'http://localhost');
|
|
2559
|
+
} catch {
|
|
2560
|
+
return json(res, 400, { error: 'malformed request line' });
|
|
2561
|
+
}
|
|
2524
2562
|
try {
|
|
2525
2563
|
const denied = rejectForeignRequest(req.headers, host, url.pathname);
|
|
2526
2564
|
if (denied) {
|
package/src/i18n/en.json
CHANGED
|
@@ -2152,5 +2152,101 @@
|
|
|
2152
2152
|
"DuMate 付费套餐生效中": "DuMate paid plan active",
|
|
2153
2153
|
"还没有 Meoo 账号。<br>到「网页会话」页点 Meoo 行的「网页版」登录 meoo.com(阿里云账号手机号 + 短信)后自动捕获,每日首登积分自动领取。": "No Meoo accounts yet.<br>On the Web Sessions page, click \"Web sign-in\" on the Meoo row and sign in to meoo.com (Alibaba account phone + SMS) — the session is captured automatically, and daily login points are claimed for you.",
|
|
2154
2154
|
"{label} 领取成功(接口未返回积分数量)": "{label} claim succeeded (the API did not return a points amount)",
|
|
2155
|
-
"Cookie 罐已补齐回写": "Cookie jar healed and written back"
|
|
2155
|
+
"Cookie 罐已补齐回写": "Cookie jar healed and written back",
|
|
2156
|
+
"登录(会话 {n} · 复用)": "Sign in (session {n} · reuse)",
|
|
2157
|
+
"会话池": "Session pool",
|
|
2158
|
+
"会话 {n}": "Session {n}",
|
|
2159
|
+
"此会话来自登录槽 {n}(独立的持久登录分区,与其它会话互不可见)": "This session comes from login slot {n} (an independent persistent login partition, invisible to other sessions)",
|
|
2160
|
+
"{name} · 会话池": "{name} · Session pool",
|
|
2161
|
+
"{n} 个账号": "{n} account(s)",
|
|
2162
|
+
"空": "Empty",
|
|
2163
|
+
"打开登录": "Open sign-in",
|
|
2164
|
+
"登录": "Sign in",
|
|
2165
|
+
"抹掉本会话槽留存的登录态(下次打开需重新登录;已捕获的账号数据不受影响)": "Erase the login state kept for this slot (next open requires sign-in again; captured account data is unaffected)",
|
|
2166
|
+
"尚未使用——登录后本槽的会话与其它槽互不可见。": "Not in use yet — after sign-in, this slot's session is invisible to other slots.",
|
|
2167
|
+
"每个「会话」是一个独立的持久登录分区(本机留存登录态):把常用账号固定在会话 1、小号放会话 2…,换号时选对应槽「打开登录」即可直接进入控制台,无需反复登录。": "Each \"session\" is an independent persistent login partition (login state kept on this machine): pin your main account to Session 1, a secondary one to Session 2…; to switch accounts just open the matching slot's sign-in — it goes straight to the console without re-signing in.",
|
|
2168
|
+
"清除会话 {n} 在本机留存的登录态?已捕获的账号数据不受影响,仅该槽下次打开需要重新登录。": "Erase the login state kept for Session {n}? Captured account data is unaffected; only this slot requires sign-in again on next open.",
|
|
2169
|
+
"清除会话": "Clear session",
|
|
2170
|
+
"清除": "Clear",
|
|
2171
|
+
"已清除会话 {n} 的登录态": "Cleared the login state of Session {n}",
|
|
2172
|
+
"用登录槽 1 的已存会话开窗(有会话直接进控制台,没有则先登录)": "Open with the saved session of login slot 1 (goes straight to the console if a session exists; sign in first otherwise)",
|
|
2173
|
+
"管理该站点的登录会话池:多槽各自登录不同账号、改名备注或清除": "Manage this site's login session pool: sign in different accounts per slot, rename, or clear",
|
|
2174
|
+
"登录后 dashboard 才有 Free allowance 配额;凭据只存本机,同步到 10Router 点亮卡片。": "The Free allowance quota only appears in the dashboard after sign-in; credentials stay on this machine and sync to 10Router to light up the card.",
|
|
2175
|
+
"登录后自动抓取 UID 与充值余额;推送到 10Router 显示余额卡片。": "Captures your UID and top-up balance after sign-in; pushed to 10Router as a balance card.",
|
|
2176
|
+
"登录后自动抓取魔方(Magicube)余额;每日额度自动发放无需签到,余额数字推 10Router 出卡。": "Captures your Magicube balance after sign-in; the daily quota is granted automatically with no check-in, and the balance number is pushed to 10Router as a card.",
|
|
2177
|
+
"登录后自动抓取会话与 Billing 余额($25 免费额度);推送 10Router 只带余额数字,会话过期自动刷新。": "Captures your WorkOS session and Billing balance ($25 free credit) after sign-in; only the balance number is pushed to 10Router, and expired sessions refresh automatically.",
|
|
2178
|
+
"登录后自动抓取 Token 资源包余量与逐包明细;推送 10Router 只带 token 数字,会话 cookie 只存本机。": "Captures your token pack balances and per-pack details after sign-in; only the token number is pushed to 10Router, and the session cookie stays on this machine.",
|
|
2179
|
+
"登录后捕获会话,CD 只读展示体验额度与签到状态(+200/天);签到请在「打开豆包」里手动完成(活动在客户端内,CD 不代签)。凭据只存本机。": "Captures the session after sign-in; CD shows the trial quota and check-in status read-only (+200/day). Do the check-in manually via \"Open Doubao\" (the activity lives in the client; CD does not auto-check-in). Credentials stay on this machine.",
|
|
2180
|
+
"每日自动签到(+100 灵点,七天一轮第七天 200)+ 推送 10Router 出余额卡。多号分别捕获即分行并存。": "Daily auto check-in (+100 Lingdian; a 7-day cycle with 200 on day 7) + pushes a balance card to 10Router. Capture each account separately and they coexist as separate rows.",
|
|
2181
|
+
"登录 meoo.com(阿里云账号 + 短信)后捕获会话;CD 每日自动领取首登积分并展示余额。会话失效时请重新登录捕获,Cookie 只存本机。": "Capture the session after signing in to meoo.com (Alibaba Cloud account + SMS); CD claims the first-login points daily and shows the balance. If the session expires, sign in and capture again. Cookies stay on this machine.",
|
|
2182
|
+
"在登录窗完成个人版登录后自动捕获会话;也可走「添加账号 → 本机导入」。CD 每日自动领取登录赠送积分,可一键同步到 10Router。": "The session is captured automatically after you sign in to the personal edition in the login window; you can also use \"Add account → Import from this machine\". CD claims the login bonus daily and can sync to 10Router in one click.",
|
|
2183
|
+
"管理会话池": "Manage session pool",
|
|
2184
|
+
"多槽在用时先弹「选择会话」;单槽直接用已存会话开窗(有会话直接进控制台,没有则先登录)": "When multiple slots are in use, a session picker opens first; with a single slot it opens the saved session directly (straight to the console if signed in, sign-in first otherwise)",
|
|
2185
|
+
"选择{name}的会话": "Choose a session for {name}",
|
|
2186
|
+
"(无备注名)": "(no alias)",
|
|
2187
|
+
"用新会话槽登录…": "Sign in with a new session slot…",
|
|
2188
|
+
"会话槽已满(1~9)——请到「会话池」清除不用的槽后再试": "All session slots (1–9) are in use — clear an unused slot in the Session pool and try again",
|
|
2189
|
+
"每日定时计划 {hh}:{mm} 触发——自动领取窗口已开启(周期 {iv} 分钟,{win})": "Daily schedule {hh}:{mm} fired — auto-claim window opened (every {iv} min, {win})",
|
|
2190
|
+
"运行 ": "run ",
|
|
2191
|
+
"每日定时计划触发失败:{err}": "Daily schedule failed: {err}",
|
|
2192
|
+
"计划时间的小时需在 0–23 之间": "Schedule hour must be 0–23",
|
|
2193
|
+
"计划时间的分钟需在 0–59 之间": "Schedule minute must be 0–59",
|
|
2194
|
+
"每日定时开启(到点自动开始一轮上面的轮询)": "Daily schedule (auto-starts one polling round above at the set time)",
|
|
2195
|
+
"每天": "Every day at",
|
|
2196
|
+
"开启后按此周期检查活动资格并自动领取(首次检查在开启 2 分钟后开始)。活动包由服务端在每日 0 点左右刷新放出——若运行时段没有覆盖 0 点,会错过当次领取,建议把运行时长设为 0,或让时段跨过 0 点,或用「每日定时开启」每天固定时刻拉起一轮。需要验证码时无法自动通过,卡片上会提示手动领取。": "When on, eligibility is checked and claims are made automatically at this interval (first check starts 2 minutes after enabling). Activity packs refresh around midnight (server-side) — if your running window doesn't cover midnight you'll miss that day's pack: set the window to 0 (always on), let it span midnight, or use the daily schedule to auto-start a round at a fixed time each day. Captcha cannot be solved automatically; the card will prompt for manual claiming.",
|
|
2197
|
+
";每日 ": "; daily at ",
|
|
2198
|
+
" 定时开启一轮": " schedule starts a round",
|
|
2199
|
+
";每日定时计划 ": "; daily schedule ",
|
|
2200
|
+
" 自动开启一轮(下次 ": " auto-starts a round (next: ",
|
|
2201
|
+
"ZCode 活动领取当前关闭,但每日定时计划已排:到点自动开启一轮": "ZCode auto-claim is currently off, but a daily schedule is set: a round will auto-start at the set time",
|
|
2202
|
+
"),配置在 ZCode 页「自动领取计划」": "), configured under ZCode page \"Auto-claim plan\"",
|
|
2203
|
+
"ZCode 每日定时计划已随手动停用一并关闭(防隔夜复活继续撞接口)": "ZCode daily schedule has been turned off along with the manual stop (prevents it from auto-resuming next day and hammering the API)",
|
|
2204
|
+
"{label} 自动轮询暂休到 {until}({why})": "{label} auto-poll snoozed until {until} ({why})",
|
|
2205
|
+
"验证码连续失败退避": "captcha repeated-failure backoff",
|
|
2206
|
+
"服务端计划结束点": "server plan end point",
|
|
2207
|
+
"{label}「{plan}」验证码未完成:{err}(可在面板手动领取或到官方客户端领取)。自动轮退避 {min} 分钟(连续第 {n} 轮全拒)": "{label} \"{plan}\" captcha not completed: {err} (claim manually in the panel or in the official client). Auto-poll backs off {min} min (round {n} of consecutive full rejections)",
|
|
2208
|
+
"(下次 ": " (next: ",
|
|
2209
|
+
"自动领取运行中": "Auto-claim running",
|
|
2210
|
+
"——点我调整轮询周期 / 运行时长": " — click to adjust polling interval / run duration",
|
|
2211
|
+
"自动领取当前关闭,每日定时计划已排": "Auto-claim is currently off, but the daily schedule is set",
|
|
2212
|
+
"——点我调整": " — click to adjust",
|
|
2213
|
+
",下次 ": ", next ",
|
|
2214
|
+
"未开启": "not enabled",
|
|
2215
|
+
"(计划到点自动拉起;手动停用会连计划一起关)": " (the schedule auto-starts a round at the set time; manual stop also turns the schedule off)",
|
|
2216
|
+
"(右上角设置轮询计划)": " (set the polling plan at the top right)",
|
|
2217
|
+
"已排 · 下次 ": "Scheduled · next ",
|
|
2218
|
+
"已排": "Scheduled",
|
|
2219
|
+
"未排": "Not scheduled",
|
|
2220
|
+
"保存定时": "Save schedule",
|
|
2221
|
+
"两处各自保存:上面的周期/时长归「保存并启用」(单次窗口),每日定时归「保存定时」——保存定时只存计划、不立即开跑,到点才自动开启一轮。活动包由服务端在每日 0 点左右刷新放出,运行时段没覆盖 0 点会错过当次领取(建议时长设 0 或跨过 0 点)。需要验证码时无法自动通过,卡片上会提示手动领取。": "The two sections save separately: interval/duration above belong to \"Save & enable\" (the single-run window); the daily schedule belongs to \"Save schedule\" — which only stores the plan and does not start a run; a round auto-starts at the set time. Activity packs refresh around midnight (server-side); a running window that doesn't cover midnight misses that day's pack (set duration to 0 or span midnight). Captcha cannot be solved automatically; the card will prompt for manual claiming.",
|
|
2222
|
+
"每日定时已保存:每天 ": "Daily schedule saved: every day at ",
|
|
2223
|
+
" 自动开启一轮(到点才跑,不影响当前)": " auto-starts a round (runs only at that time, current state untouched)",
|
|
2224
|
+
"每日定时已取消": "Daily schedule removed",
|
|
2225
|
+
"ZCode 自动领取:已关闭(每日定时计划一并停用)": "ZCode auto-claim: off (daily schedule disabled along with it)",
|
|
2226
|
+
"今日已全部领取,自动轮已无事可做(窗口/计划仍挂着,次日刷新后照常)": "All claimed for today — auto-poll has nothing left to do (window/schedule stay set; resumes after tomorrow's refresh)",
|
|
2227
|
+
"每日定时:每天到点自动开跑一轮": "Daily schedule: auto-runs one round at the set time every day",
|
|
2228
|
+
"点「保存定时」即已保存生效,无需再点其他按钮;到点自动开跑一轮(按下面单次窗口的参数)。": "Clicking \"Save schedule\" saves and activates it — no other button needed. At the set time it auto-runs one round with the one-off window parameters below.",
|
|
2229
|
+
"单次窗口:现在立即开跑(与每日定时互不影响)": "One-off window: run right now (fully independent of the daily schedule)",
|
|
2230
|
+
"立即开跑": "Run now",
|
|
2231
|
+
"马上按上面参数开跑一轮;只影响本次,不改每日定时": "Starts one round right away with the parameters above; affects this run only — never touches the daily schedule",
|
|
2232
|
+
"活动包由服务端在每日 0 点左右刷新放出,运行时段没覆盖 0 点会错过当次领取(建议时长设 0 或跨过 0 点)。需要验证码时无法自动通过,卡片上会提示手动领取。": "Activity packs refresh around midnight (server-side); a running window that doesn't cover midnight misses that day's pack (set duration to 0 or span midnight). Captcha cannot be solved automatically; the card will prompt for manual claiming.",
|
|
2233
|
+
"每天 ": "every day at ",
|
|
2234
|
+
" 自动开跑一轮": " auto-runs one round",
|
|
2235
|
+
"自动领取运行中:每 ": "Auto-claim running: every ",
|
|
2236
|
+
" 分钟后自动关": " min, then auto-off",
|
|
2237
|
+
";另有每日定时:": "; plus a daily schedule: ",
|
|
2238
|
+
"每日定时已排:": "Daily schedule saved: ",
|
|
2239
|
+
"(已保存即生效,无需「启用」)": " (saved and active — no enabling needed)",
|
|
2240
|
+
";要现在领,点右上角「自动领取」→「立即开跑」": "; to claim now, click \"Auto-claim\" (top right) → \"Run now\"",
|
|
2241
|
+
"自动领取未开启:点右上角「自动领取」排每日定时,或「立即开跑」现在领": "Auto-claim is off: click \"Auto-claim\" (top right) to set a daily schedule, or \"Run now\" to claim immediately",
|
|
2242
|
+
"自动领取已关闭——点我排每日定时,或立即开跑": "Auto-claim is off — click me to set a daily schedule or run now",
|
|
2243
|
+
"<div class=\"z-row\"><span class=\"z-label\">活动领取</span><span class=\"z-text\">活动包积分,每日 0 点左右刷新(无每日签到)。": "<div class=\"z-row\"><span class=\"z-label\">Activity claim</span><span class=\"z-text\">Activity-pack credits refresh around midnight daily (no daily check-in). ",
|
|
2244
|
+
"ZCode 活动领取当前关闭,但每日定时已排:每天 ": "ZCode auto-claim is currently off, but a daily schedule is saved: runs every day at ",
|
|
2245
|
+
"(已保存即生效,无需「启用」),配置在 ZCode 页「自动领取计划」": " (saved and active — no enabling needed). Configure it under ZCode page \"Auto-claim plan\"",
|
|
2246
|
+
"每日定时": "Daily schedule",
|
|
2247
|
+
"停止运行": "Stop run",
|
|
2248
|
+
"开关即时生效:开=按当前时间排计划;关=取消计划": "Toggle saves instantly: on = schedule with the current time; off = cancel the plan",
|
|
2249
|
+
"停止单次窗口;每日定时计划一并停用": "Stops the one-off window; the daily schedule is disabled along with it",
|
|
2250
|
+
"开关即保存:开=按当前时间排上计划,关=取消计划。改时间后点「保存定时」;到点自动开跑一轮(按下面单次窗口的参数),无需再点其他按钮。": "The switch saves instantly: on = schedule with the current time, off = cancel. Click \"Save schedule\" after changing the time; a round auto-runs at the set time (with the one-off window parameters below) — no other button needed.",
|
|
2251
|
+
"马上按上面参数开跑一轮;只影响本次,不改每日定时。": "Starts one round right away with the parameters above; affects this run only — never touches the daily schedule."
|
|
2156
2252
|
}
|