From 7f5e9d5244c5026731210dc601325361d02e6a5c Mon Sep 17 00:00:00 2001 From: Yu Yon Date: Fri, 9 Jan 2026 09:09:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A4=9A=E4=BB=BB=E5=8A=A1=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=97=B6=E6=98=BE=E7=A4=BA=E7=AD=89=E5=BE=85=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 任务入队时设置状态为"等待上传" - 实际上传时更新为"上传截图" - 用户可以更直观地看到多任务上传进度 --- services/kdocs_uploader.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/services/kdocs_uploader.py b/services/kdocs_uploader.py index 8789feb..e73c08a 100644 --- a/services/kdocs_uploader.py +++ b/services/kdocs_uploader.py @@ -90,6 +90,15 @@ class KDocsUploader: "image_path": image_path, } try: + # 入队前设置状态为等待上传 + try: + account = safe_get_account(user_id, account_id) + if account and self._should_mark_upload(account): + account.status = "等待上传" + self._emit_account_update(user_id, account) + except Exception: + pass + self._queue.put({"action": "upload", "payload": payload}, timeout=1) return True except queue.Full: