提交 d48396e6 authored 作者: yangli's avatar yangli

.

上级 c02c9795
...@@ -187,6 +187,17 @@ public class ProgramController { ...@@ -187,6 +187,17 @@ public class ProgramController {
return R.success(MAP.containsKey(type + "-" + id)); return R.success(MAP.containsKey(type + "-" + id));
}*/ }*/
@GetMapping(value = "{type}/install_success")
public R<Void> installSuccess(@PathVariable @Pattern(regexp = "install|upgrade") String type,
@RequestParam @NotNull Long id) {
String reqUrl = gateway + StrUtil.format(type.equals("install") ? installStatusUpIssueUrl : upgradeStatusUpIssueUrl,
MacAddrUtil.get(), id);
HttpUtil.post(reqUrl, (String) null);
return R.success();
}
@GetMapping(value = "get_version") @GetMapping(value = "get_version")
public R<String> getVersion(@RequestParam @NotBlank String name) throws IOException { public R<String> getVersion(@RequestParam @NotBlank String name) throws IOException {
installedProgramCache.loadProgramListJob(); installedProgramCache.loadProgramListJob();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论