feat: 接入dify工作流来控制审批流程
This commit is contained in:
@@ -106,11 +106,12 @@ def create_approve_graph(
|
|||||||
|
|
||||||
)
|
)
|
||||||
result = response.json()
|
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')
|
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":
|
if is_need_supervisor_approve == "Y":
|
||||||
# 审批通过
|
# 审批通过
|
||||||
return Command(goto="node_accept", update={})
|
return Command(goto="node_accept", update={})
|
||||||
|
|||||||
Reference in New Issue
Block a user