From 1c7cd90d4edd8ea48ade616342a6cbbcc6ad2b6a Mon Sep 17 00:00:00 2001 From: martsforever Date: Sun, 24 Aug 2025 20:13:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8E=A5=E5=85=A5dify=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=E6=9D=A5=E6=8E=A7=E5=88=B6=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/workflow/approve.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/workflow/approve.py b/app/workflow/approve.py index f827e8d..c2b3c39 100644 --- a/app/workflow/approve.py +++ b/app/workflow/approve.py @@ -106,11 +106,12 @@ def create_approve_graph( ) result = response.json() - print('\n\n', ":::::::::::httpx.AsyncClient start::::::::::::", '\n\n') - print(result) - print('\n\n', ":::::::::::httpx.AsyncClient end::::::::::::", '\n\n') is_need_supervisor_approve = result.get('data').get('outputs').get('flag') + print('\n\n', ":::::::::::httpx.AsyncClient start::::::::::::", '\n\n') + print(result, is_need_supervisor_approve == "Y", is_need_supervisor_approve) + print('\n\n', ":::::::::::httpx.AsyncClient end::::::::::::", '\n\n') + if is_need_supervisor_approve == "Y": # 审批通过 return Command(goto="node_accept", update={})