fix: 调整 playbook 接口参数名称
This commit is contained in:
@@ -257,7 +257,7 @@ public class APIController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/playbook")
|
@PostMapping("/playbook")
|
||||||
public R execPlaybook(@RequestParam("files") MultipartFile file,
|
public R execPlaybook(@RequestParam("file") MultipartFile file,
|
||||||
@RequestParam("packageName") String packageName,
|
@RequestParam("packageName") String packageName,
|
||||||
@RequestParam("id") String id) {
|
@RequestParam("id") String id) {
|
||||||
File apkFile = null;
|
File apkFile = null;
|
||||||
@@ -317,6 +317,9 @@ public class APIController {
|
|||||||
throw new APIException(RCode.BAD_REQUEST);
|
throw new APIException(RCode.BAD_REQUEST);
|
||||||
}
|
}
|
||||||
Map result = Constant.PLAYBOOK_RUN_RESULT.get(id);
|
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);
|
return R.ok().putData(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user