diff --git a/api/app/services/draft_run_service.py b/api/app/services/draft_run_service.py index b9d50c37..2c103d7c 100644 --- a/api/app/services/draft_run_service.py +++ b/api/app/services/draft_run_service.py @@ -388,7 +388,7 @@ class AgentRunService: for f in files: if f.transfer_method.value not in allowed_methods: raise BusinessException( - f"不支持的文件传输方式:{f.transfer_method},允许的方式:{', '.join(allowed_methods)}", + f"不支持的文件传输方式:{f.transfer_method.value},允许的方式:{', '.join(allowed_methods)}", BizCode.BAD_REQUEST )