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

master
WenYongbin 1 week ago
parent 7bee510298
commit 71cb602011

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

Loading…
Cancel
Save