From dc5ca927259dfaf32c76adeebe9bf449a3a9abd6 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Wed, 15 Jul 2026 12:11:52 +0800 Subject: [PATCH] fix: When the default value of the application parameter switch is False, the application obtains the value of None --- apps/trigger/handler/impl/task/application_task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/trigger/handler/impl/task/application_task.py b/apps/trigger/handler/impl/task/application_task.py index 29ec3d478a7..b88b302a470 100644 --- a/apps/trigger/handler/impl/task/application_task.py +++ b/apps/trigger/handler/impl/task/application_task.py @@ -61,7 +61,7 @@ def get_field_value(value, kwargs, _type, required, default_value, field): if _value: _value = conversion_custom_value(_value, _type) else: - if default_value: + if default_value or (_type == 'boolean' and default_value == False): return default_value if required: raise Exception(f'{field} is required') @@ -169,7 +169,7 @@ def get_application_parameters_setting(application): v = file_upload_setting.get(field) if v: application_parameter_setting[field + '_list'] = {'required': False, 'default_value': [], - 'type': 'array'} + 'type': 'array'} return application_parameter_setting