feat: 支持按时区查询活跃用户时间窗

This commit is contained in:
Codex
2026-07-15 06:09:58 +02:00
parent 1b0a7d7bb3
commit aab251173e
7 changed files with 140 additions and 21 deletions
@@ -57,8 +57,7 @@ export function profitScript(payload: unknown, pool: CodexPoolConfig, target: Co
return remotePythonScript("profit", encoded, pool, target);
}
export function creditsScript(payload: unknown, target: CodexPoolRuntimeTarget): string {
const pool = readCodexPoolConfig();
export function creditsScript(payload: unknown, pool: CodexPoolConfig, target: CodexPoolRuntimeTarget): string {
const encoded = Buffer.from(JSON.stringify(payload), "utf8").toString("base64");
return remotePythonScript("credits", encoded, pool, target);
}