fix: 调整 playbook 接口参数名称

This commit is contained in:
zhangshuai
2024-11-01 15:08:56 +08:00
parent ad63b414bf
commit f90a6deffb

View File

@@ -257,7 +257,7 @@ public class APIController {
}
@PostMapping("/playbook")
public R execPlaybook(@RequestParam("files") MultipartFile file,
public R execPlaybook(@RequestParam("file") MultipartFile file,
@RequestParam("packageName") String packageName,
@RequestParam("id") String id) {
File apkFile = null;
@@ -317,6 +317,9 @@ public class APIController {
throw new APIException(RCode.BAD_REQUEST);
}
Map result = Constant.PLAYBOOK_RUN_RESULT.get(id);
if (!T.MapUtil.getStr(result, "status").equals("running")){
Constant.PLAYBOOK_RUN_RESULT.remove(id);
}
return R.ok().putData(result);
}