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 link_type == "workflow_task" and link_id:
|
||||||
if pc_base:
|
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:
|
if app_base:
|
||||||
app_url = f"{app_base}/pages-workflow/task-detail?taskId={link_id}"
|
app_url = f"{app_base}/pages-workflow/task-detail?taskId={link_id}"
|
||||||
elif link_type == "workflow_instance" and link_id:
|
elif link_type == "workflow_instance" and link_id:
|
||||||
if pc_base:
|
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:
|
if app_base:
|
||||||
app_url = f"{app_base}/pages-workflow/instance-detail?instanceId={link_id}"
|
app_url = f"{app_base}/pages-workflow/instance-detail?instanceId={link_id}"
|
||||||
|
|
||||||
|
|||||||
@@ -13184,10 +13184,10 @@
|
|||||||
"pk": "pChList0610",
|
"pk": "pChList0610",
|
||||||
"fields": {
|
"fields": {
|
||||||
"menu_id": "RW4XRQIRejnDzsKH8fPPk",
|
"menu_id": "RW4XRQIRejnDzsKH8fPPk",
|
||||||
"name": "menu-title.startChat-??",
|
"name": "menu-title.startChat",
|
||||||
"code": "chat:list",
|
"code": "chat:list",
|
||||||
"permission_type": 1,
|
"permission_type": 1,
|
||||||
"api_path": "/api/ai/chat/conversations",
|
"api_path": "/api/core/chat/conversations",
|
||||||
"http_method": 0,
|
"http_method": 0,
|
||||||
"description": "Basic read permission",
|
"description": "Basic read permission",
|
||||||
"is_active": true,
|
"is_active": true,
|
||||||
@@ -13206,10 +13206,10 @@
|
|||||||
"pk": "pChManage0610",
|
"pk": "pChManage0610",
|
||||||
"fields": {
|
"fields": {
|
||||||
"menu_id": "RW4XRQIRejnDzsKH8fPPk",
|
"menu_id": "RW4XRQIRejnDzsKH8fPPk",
|
||||||
"name": "menu-title.startChat-??",
|
"name": "menu-title.startChat",
|
||||||
"code": "chat:manage",
|
"code": "chat:manage",
|
||||||
"permission_type": 1,
|
"permission_type": 1,
|
||||||
"api_path": "/api/ai/chat/conversations",
|
"api_path": "/api/core/chat/conversations",
|
||||||
"http_method": 5,
|
"http_method": 5,
|
||||||
"description": "Basic manage permission",
|
"description": "Basic manage permission",
|
||||||
"is_active": true,
|
"is_active": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user