From 551129a5db96903751c0bf9d521c5232d7d87cd7 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Fri, 20 Sep 2024 19:09:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E3=80=90=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E7=BC=96=E6=8E=92=E3=80=91=E5=BA=94=E7=94=A8=E7=BC=96?= =?UTF-8?q?=E6=8E=92=E4=B8=AD=E5=BC=95=E7=94=A8=E5=87=BD=E6=95=B0=EF=BC=8C?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E8=A2=AB=E7=A6=81=E7=94=A8=E5=90=8E=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E9=87=8C=E8=BF=98=E5=8F=AF=E4=BB=A5=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../step_node/function_lib_node/impl/base_function_lib_node.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/application/flow/step_node/function_lib_node/impl/base_function_lib_node.py b/apps/application/flow/step_node/function_lib_node/impl/base_function_lib_node.py index db8c5c8195..94e2f5c54c 100644 --- a/apps/application/flow/step_node/function_lib_node/impl/base_function_lib_node.py +++ b/apps/application/flow/step_node/function_lib_node/impl/base_function_lib_node.py @@ -91,6 +91,8 @@ def convert_value(name: str, value, _type, is_required, source, node): class BaseFunctionLibNodeNode(IFunctionLibNode): def execute(self, function_lib_id, input_field_list, **kwargs) -> NodeResult: function_lib = QuerySet(FunctionLib).filter(id=function_lib_id).first() + if not function_lib.is_active: + raise Exception(f'函数:{function_lib.name} 不可用') params = {field.get('name'): convert_value(field.get('name'), field.get('value'), field.get('type'), field.get('is_required'), field.get('source'), self)