From 6b4d893689d7ae45c2ff6060b45a16f0c9c9cbd5 Mon Sep 17 00:00:00 2001 From: ymq Date: Fri, 11 Sep 2026 15:30:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(todos):=20=E9=92=B1=E5=8C=85=E4=BD=99?= =?UTF-8?q?=E9=A2=9D=E4=B8=8D=E8=B6=B3=E5=BE=85=E5=8A=9E=E5=88=86=E6=94=AF?= =?UTF-8?q?(source=3Dllm=5Fwallet,2026-09-11)=E2=80=94=E2=80=94=E7=BA=A2?= =?UTF-8?q?=E8=89=B2=E3=80=8C=E9=92=B1=E5=8C=85=E5=85=85=E5=80=BC=E3=80=8D?= =?UTF-8?q?badge,=E8=AF=A6=E6=83=85=E8=B5=B0pipeline-llm=E8=87=AA=E6=8C=81?= =?UTF-8?q?llm=5Fwallet=5Ftodo=5Fpopup.dspy(=E5=BC=B9=E7=AA=97=E5=86=85?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=85=85=E5=80=BC);=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=B4=BE=E7=94=9F=E5=BE=85=E5=8A=9E=E5=85=85=E5=80=BC=E5=88=B0?= =?UTF-8?q?=E8=B4=A6=E8=87=AA=E5=8A=A8=E6=B6=88=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/my_todos_popup.dspy | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wwwroot/api/my_todos_popup.dspy b/wwwroot/api/my_todos_popup.dspy index ed4fb91..4eaeac7 100644 --- a/wwwroot/api/my_todos_popup.dspy +++ b/wwwroot/api/my_todos_popup.dspy @@ -26,6 +26,7 @@ TYPE_COLOR = { detail_url = entire_url("/pipeline-sdlc/api/todo_detail.dspy") ticket_detail_url = entire_url("/ticket/api/ticket_detail_popup.dspy") +wallet_detail_url = entire_url("/pipeline-llm/api/llm_wallet_todo_popup.dspy") def _s(v): @@ -69,6 +70,12 @@ for t in (todos or []): badge_color = '#0ea5e9' title = _clip(t.get('title'), 80) or '工单' summary = _clip(t.get('description'), 110) + elif src == 'llm_wallet': + # 模型账号钱包余额不足(2026-09-11 接入平台待办):状态派生,充值到账自动消失 + badge = _s(t.get('badge')) or '钱包充值' + badge_color = '#dc2626' + title = _clip(t.get('title'), 80) or '钱包充值' + summary = _clip(t.get('description'), 110) elif src == 'question': badge = '待答问题' badge_color = '#8b5cf6' @@ -95,6 +102,12 @@ for t in (todos or []): + _json.dumps(tid) + ");" "var rp=await fetch(du);var dd=await rp.json();" "await bricks.widgetBuild(dd,bricks.app);") + elif src == 'llm_wallet': + # 钱包待办详情走 pipeline-llm 自持端点(弹窗内直接充值) + open_script = ("var du=" + _json.dumps(wallet_detail_url) + "+'?id='+encodeURIComponent(" + + _json.dumps(tid) + ");" + "var rp=await fetch(du);var dd=await rp.json();" + "await bricks.widgetBuild(dd,bricks.app);") else: open_script = ("var du=" + _json.dumps(detail_url) + "+'?kind=" + kind + "&id='+encodeURIComponent(" + _json.dumps(tid) + ");"