mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复【应用编排】应用编排中引用函数,函数被禁用后应用里还可以正常执行
This commit is contained in:
parent
19d48693ec
commit
a980604617
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue