fix: 下载调用前判断数量,否则不调用接口

master
WenYongbin 1 week ago
parent 71cb602011
commit 7a6af3be5f

@ -27,7 +27,7 @@ public class DownPlatformServiceImpl implements DownPlatformService {
@Override @Override
public CommonResult report(ReportDownDto reportDownDto) { public CommonResult report(ReportDownDto reportDownDto) {
if (!reportDownDto.getScanfiles().isEmpty()) { if (reportDownDto.getScanfiles().isEmpty()) {
return CommonResult.failed("文件数量为空!"); return CommonResult.failed("文件数量为空!");
} }
String downUrl = serverUrlConfig.getDownloadPlatformServerUrl() + "api/downplatform/report"; String downUrl = serverUrlConfig.getDownloadPlatformServerUrl() + "api/downplatform/report";

Loading…
Cancel
Save