fix: repair decompiled sources and add exhaustive documentation

- restore generic signatures, scoped variables and missing code from original bytecode
- remove decompiler artifacts and document classes, methods, fields and packages
- restore resources, add Batik/BouncyCastle dependencies and build/runtime docs
This commit is contained in:
rick committed 2026-11-16 17:28:23 +08:00
1 parent 9d7e42eda8
commit 10aa1829f5
346 files changed
+42404 -622

No files matched your search

@@ -47,10 +47,25 @@ import org.springframework.web.util.UriComponentsBuilder;
*/
@Controller
public class DpcController {
/**
* store应用服务;Spring 自动注入的依赖。
*
* 注解:{@code @Autowired}。
*/
@Autowired
private StoreAppService storeAppService;
/**
* 用户服务;Spring 自动注入的依赖。
*
* 注解:{@code @Autowired}。
*/
@Autowired
private UserService userService;
/**
* 站点服务;Spring 自动注入的依赖。
*
* 注解:{@code @Autowired}。
*/
@Autowired
private SiteService siteService;
@@ -84,6 +99,15 @@ public class DpcController {
return this.toDpcConfig(request, dpc);
}
/**
* 处理转换为Dpc配置。
*
* 实现要点:包含异常捕获与降级/回滚分支;包含 12 个条件分支、1 个循环;主要调用:new File、new URL。
*
* @param request HTTP 请求({@code HttpServletRequest})
* @param dpc 参数 {@code dpc}({@code DpcModel})
* @return 字符串结果
*/
private String toDpcConfig(HttpServletRequest request, DpcModel dpc) {
String adminPackage = dpc.getDeviceAdmin();
if (!Strings.isNullOrEmpty(adminPackage) && adminPackage.indexOf(47) < 0) {
@@ -145,6 +169,18 @@ public class DpcController {
return dpc.toDpcConfig();
}
/**
* 获取Checksum。
*
* 实现要点:包含异常捕获与降级/回滚分支;主要调用:new URL。
*
* 框架注解:{@code @RequestMapping(value = {"/dpc/checksum"}, method = {RequestMethod.GET})}、{@code @ResponseBody}。
*
* @param request HTTP 请求({@code HttpServletRequest})
* @param response HTTP 响应({@code HttpServletResponse})
* @param url 参数 {@code url}({@code String})
* @return 字符串结果
*/
@RequestMapping(
value = {"/dpc/checksum"},
method = {RequestMethod.GET}