Fix chat workflow links and permissions
This commit is contained in:
@@ -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}"
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user