|
|
@ -951,10 +951,17 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit |
|
|
|
SyncScanResult imgSyncScanResult = null; |
|
|
|
SyncScanResult textSyncScanResult = null; |
|
|
|
|
|
|
|
if(!CollectionUtils.isEmpty(imgScanParamDTO.getTasks())){ |
|
|
|
log.info("scanContent imgScanParamDTO:{}", JSON.toJSONString(imgScanParamDTO)); |
|
|
|
imgSyncScanResult = ScanContentUtils.imgSyncScan(scanApiHost.concat(imgSyncScanMethod), imgScanParamDTO); |
|
|
|
log.info("scanContent imgSyncScanResult:{}", JSON.toJSONString(imgSyncScanResult)); |
|
|
|
} |
|
|
|
if(!CollectionUtils.isEmpty(textScanParamDTO.getTasks())){ |
|
|
|
log.info("scanContent textScanParamDTO:{}", JSON.toJSONString(textScanParamDTO)); |
|
|
|
imgSyncScanResult = ScanContentUtils.imgSyncScan(scanApiHost.concat(imgSyncScanMethod), imgScanParamDTO); |
|
|
|
textSyncScanResult = ScanContentUtils.textSyncScan(scanApiHost.concat(textSyncScanMethod), textScanParamDTO); |
|
|
|
textSyncScanResult = ScanContentUtils.textSyncScan(scanApiHost.concat(textSyncScanMethod), textScanParamDTO); |
|
|
|
log.info("scanContent textSyncScanResult:{}", JSON.toJSONString(textSyncScanResult)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
result = new SyncScanResult(); |
|
|
|
if (imgSyncScanResult.isAllPass()) { |
|
|
@ -972,6 +979,7 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit |
|
|
|
this.sendMsg(draftEntity.getTitle(), String.format(ModuleConstant.MSG_ARTICLE_PUBLISH_ERROR, draftEntity.getTitle())); |
|
|
|
this.updateDraftPublishStatus(draftId, DraftConstant.AUDITFAIL); |
|
|
|
} |
|
|
|
log.error("scanContent result", JSON.toJSONString(result)); |
|
|
|
return result; |
|
|
|
} |
|
|
|
@Override |
|
|
|