From 3c46dd910b95c3377842acadf96fea9d67076bc0 Mon Sep 17 00:00:00 2001 From: Christ Date: Tue, 18 Aug 2026 17:52:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87=E5=8D=A1?= =?UTF-8?q?=E5=AF=86=E5=8F=91=E9=80=81=E4=B8=8E=E8=87=AA=E5=8A=A8=E5=8C=96?= =?UTF-8?q?=E5=BB=B6=E8=BF=9F=E8=B0=83=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 图片卡密改为下载 URL 内容后按账号正常发送;批量铺货支持发布强制间隔;持久化延迟动作改为秒级调度,保留原有生命周期收口。 --- AGENTS.md | 2 +- .../app/features/cards/pages/CardList.tsx | 19 +- internal/adapter/adapter.go | 4 +- internal/adapter/automation_image_sender.go | 165 ++++++++++++++++++ .../adapter/automation_image_sender_test.go | 154 ++++++++++++++++ internal/application/cards/service.go | 6 + internal/application/cards/service_test.go | 2 + internal/automation/scheduler.go | 55 ++++-- internal/automation/scheduler_test.go | 99 ++++++++++- ...st-CW56xo40.js => AccountList-YEP7gkPK.js} | 2 +- ...dList-DXFjEouq.js => CardList-DLDaW7yY.js} | 12 +- .../{Chat-o8zU9itw.js => Chat-CAAlTzxu.js} | 2 +- ...oard-xJlcwTaJ.js => Dashboard-f8YKyHjy.js} | 2 +- ...mList-CnEIHIcF.js => ItemList-Bdw_qpXR.js} | 2 +- ...-Cgc4sSHL.js => Notifications-DhFFP-IW.js} | 2 +- ...List-BY2V4t6y.js => OrderList-DCHT7UJE.js} | 2 +- .../{Rules-BeCst9X9.js => Rules-Bl0Kw94P.js} | 2 +- ...tings-CbEKYyJY.js => Settings-5chASb_5.js} | 2 +- .../{index-CCqtUiU5.js => index-D_-iR6Jf.js} | 4 +- internal/webui/static/index.html | 2 +- 20 files changed, 498 insertions(+), 42 deletions(-) create mode 100644 internal/adapter/automation_image_sender.go create mode 100644 internal/adapter/automation_image_sender_test.go rename internal/webui/static/assets/{AccountList-CW56xo40.js => AccountList-YEP7gkPK.js} (99%) rename internal/webui/static/assets/{CardList-DXFjEouq.js => CardList-DLDaW7yY.js} (81%) rename internal/webui/static/assets/{Chat-o8zU9itw.js => Chat-CAAlTzxu.js} (99%) rename internal/webui/static/assets/{Dashboard-xJlcwTaJ.js => Dashboard-f8YKyHjy.js} (99%) rename internal/webui/static/assets/{ItemList-CnEIHIcF.js => ItemList-Bdw_qpXR.js} (99%) rename internal/webui/static/assets/{Notifications-Cgc4sSHL.js => Notifications-DhFFP-IW.js} (99%) rename internal/webui/static/assets/{OrderList-BY2V4t6y.js => OrderList-DCHT7UJE.js} (99%) rename internal/webui/static/assets/{Rules-BeCst9X9.js => Rules-Bl0Kw94P.js} (99%) rename internal/webui/static/assets/{Settings-CbEKYyJY.js => Settings-5chASb_5.js} (99%) rename internal/webui/static/assets/{index-CCqtUiU5.js => index-D_-iR6Jf.js} (95%) diff --git a/AGENTS.md b/AGENTS.md index fa050b4..69db5a0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -47,7 +47,7 @@ On a new database, open the management page after starting the server. The first and confirms an administrator password, creates the `admin` user, and signs the user in automatically. The CLI bootstrap remains available for headless or operational environments. -Disable browser automation when Chromium is unavailable: +Disable browser automation only when the user explicitly requests it or explicitly confirms that Chromium is unavailable. Unless the user gives that direction, agents MUST NOT add `-no-browser` when starting the server: ```bash go run ./cmd/server -db data/xianyu_data.db -addr :59188 -no-browser diff --git a/frontend/app/features/cards/pages/CardList.tsx b/frontend/app/features/cards/pages/CardList.tsx index fc1a835..20d87bc 100644 --- a/frontend/app/features/cards/pages/CardList.tsx +++ b/frontend/app/features/cards/pages/CardList.tsx @@ -372,7 +372,7 @@ const CardList: React.FC = () => { className="w-full ios-input px-4 py-3 rounded-xl font-mono text-sm" placeholder="https://example.com/image.png" /> -

输入图片卡密的 URL 地址

+

仅保存图片 URL;发货时会临时下载并上传到闲鱼

{editForm.image_url && (
@@ -533,13 +533,16 @@ const CardList: React.FC = () => { className="w-full ios-input px-4 py-3 rounded-xl" /> ) : addForm.type === 'image' ? ( - setAddForm({ ...addForm, content: e.target.value })} - className="w-full ios-input px-4 py-3 rounded-xl" - placeholder="https://example.com/card.png" - /> +
+ setAddForm({ ...addForm, content: e.target.value })} + className="w-full ios-input px-4 py-3 rounded-xl" + placeholder="https://example.com/card.png" + /> +

仅保存图片 URL;发货时会临时下载并上传到闲鱼

+
) : (