diff --git a/src/main/java/com/docus/server/rpc/impl/DownPlatformServiceImpl.java b/src/main/java/com/docus/server/rpc/impl/DownPlatformServiceImpl.java index fd08bc3..1062e4a 100644 --- a/src/main/java/com/docus/server/rpc/impl/DownPlatformServiceImpl.java +++ b/src/main/java/com/docus/server/rpc/impl/DownPlatformServiceImpl.java @@ -27,6 +27,9 @@ public class DownPlatformServiceImpl implements DownPlatformService { @Override public CommonResult report(ReportDownDto reportDownDto) { + if (!reportDownDto.getScanfiles().isEmpty()) { + return CommonResult.failed("文件数量为空!"); + } String downUrl = serverUrlConfig.getDownloadPlatformServerUrl() + "api/downplatform/report"; String requestId = Func.randomUUID(); String requestParam = Func.toJson(reportDownDto);