fix(项目设置): 公共脚本执行语言不符

This commit is contained in:
AgAngle 2024-02-29 14:45:08 +08:00 committed by 刘瑞斌
parent ce37c4c194
commit ffa22b9320
1 changed files with 1 additions and 0 deletions

View File

@ -243,6 +243,7 @@ public class ApiExecuteService {
String testId = runRequest.getProjectId();
// 生成执行脚本
MsCommentScriptElement msCommentScriptElement = BeanUtils.copyBean(new MsCommentScriptElement(), runRequest);
msCommentScriptElement.setScriptLanguage(runRequest.getType());
String executeScript = parseExecuteScript(msCommentScriptElement, new ApiParamConfig());
// 设置执行参数
TaskRequestDTO taskRequest = new TaskRequestDTO();