From 71cb6020116b732b984e73af90de2b4033b33acc Mon Sep 17 00:00:00 2001 From: WenYongbin <1977763549@qq.com> Date: Mon, 13 Apr 2026 17:07:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8B=E8=BD=BD=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E5=89=8D=E5=88=A4=E6=96=AD=E6=95=B0=E9=87=8F=EF=BC=8C=E5=90=A6?= =?UTF-8?q?=E5=88=99=E4=B8=8D=E8=B0=83=E7=94=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/docus/server/rpc/impl/DownPlatformServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) 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);