From ff463f5c10963c10ecc44e1e836a074532650059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?cls=5F=E5=AE=81=E6=B3=A2=E6=9C=AC=E6=9C=BA?= <908705107@qq.com> Date: Wed, 10 Jun 2026 12:02:25 +0800 Subject: [PATCH] Fix chat workflow links and permissions --- backend-fastapi/app/dingtalk.py | 4 ++-- backend-fastapi/db_init.json | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend-fastapi/app/dingtalk.py b/backend-fastapi/app/dingtalk.py index 7e84447..dde31ba 100644 --- a/backend-fastapi/app/dingtalk.py +++ b/backend-fastapi/app/dingtalk.py @@ -380,12 +380,12 @@ class DingTalkTodo: if link_type == "workflow_task" and link_id: if pc_base: - pc_url = f"{pc_base}/app/workflow_center/workflow/pending?id={link_id}" + pc_url = f"{pc_base}/ai-platform/workflow-runs?id={link_id}" if app_base: app_url = f"{app_base}/pages-workflow/task-detail?taskId={link_id}" elif link_type == "workflow_instance" and link_id: if pc_base: - pc_url = f"{pc_base}/app/workflow_center/workflow/initiated?id={link_id}" + pc_url = f"{pc_base}/ai-platform/workflow-runs?id={link_id}" if app_base: app_url = f"{app_base}/pages-workflow/instance-detail?instanceId={link_id}" diff --git a/backend-fastapi/db_init.json b/backend-fastapi/db_init.json index adb12bf..075878a 100644 --- a/backend-fastapi/db_init.json +++ b/backend-fastapi/db_init.json @@ -13184,10 +13184,10 @@ "pk": "pChList0610", "fields": { "menu_id": "RW4XRQIRejnDzsKH8fPPk", - "name": "menu-title.startChat-??", + "name": "menu-title.startChat", "code": "chat:list", "permission_type": 1, - "api_path": "/api/ai/chat/conversations", + "api_path": "/api/core/chat/conversations", "http_method": 0, "description": "Basic read permission", "is_active": true, @@ -13206,10 +13206,10 @@ "pk": "pChManage0610", "fields": { "menu_id": "RW4XRQIRejnDzsKH8fPPk", - "name": "menu-title.startChat-??", + "name": "menu-title.startChat", "code": "chat:manage", "permission_type": 1, - "api_path": "/api/ai/chat/conversations", + "api_path": "/api/core/chat/conversations", "http_method": 5, "description": "Basic manage permission", "is_active": true,