feat: 新增银行卡检查插件及相关依赖与配置文件

This commit is contained in:
2026-10-29 14:21:30 +08:00
parent 0a32518060
commit c77a26cd99
494 changed files with 66923 additions and 2714 deletions
+10
View File
@@ -14,6 +14,7 @@ const scheduler = require("./scheduler");
const queue = require("./queue");
const licensing = require("./licensing");
const runHistory = require("./run-history");
const notes = require("./notes");
const platformAuth = require("./platform-auth");
const platformCreds = require("./platform-creds");
const { HUB } = require("./hub");
@@ -214,6 +215,7 @@ function finishRun(runId, plugin, status, error, summary) {
started: run.started || 0,
finished,
duration_sec: durationSec,
note: run.note || "",
logs: Array.isArray(run.logs) ? run.logs : [],
});
// 日志集中回传:整次运行日志上送中心机(离线自动暂存补报;失败不阻断运行收尾)
@@ -233,6 +235,7 @@ function finishRun(runId, plugin, status, error, summary) {
started: run.started || 0,
finished,
duration_sec: durationSec,
note: run.note || "",
logs: Array.isArray(run.logs) ? run.logs : [],
});
} catch (e) {
@@ -251,6 +254,7 @@ function finishRun(runId, plugin, status, error, summary) {
error: ok ? "" : error || "",
duration_sec: durationSec,
summary: summary || "",
note: run.note || "",
});
// 排队任务的结束提醒(用户手动取消队列里的任务不算:应用内已有明确反馈,不再二次打扰)
if (_QUEUED_RUNS.delete(runId)) {
@@ -316,6 +320,11 @@ function submitRun(account, plugin, fields, opts) {
const enqueuedAt = Date.now() / 1000;
const name = plugin.name || plugin.id;
const version = plugin.version || "0";
// 运行备注:调用方显式传入优先;定时任务/流程编排未传时取该账号对该插件的长期备注
let note = String(o.note === undefined || o.note === null ? "" : o.note).trim();
if (!note) {
try { note = notes.get(account, plugin.id); } catch (_) { note = ""; }
}
state.registerRun(runId, {
status: "queued", // 排队中:尚未占用执行槽,started 为空
account,
@@ -323,6 +332,7 @@ function submitRun(account, plugin, fields, opts) {
name,
version,
trigger,
note,
schedule_id: o.schedule_id || "",
flow_run_id: o.flow_run_id || "",
node_id: o.node_id || "",