|
@ -945,8 +945,8 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit |
|
|
textSyncScanResult = ScanContentUtils.textSyncScan(scanApiHost.concat(textSyncScanMethod),textScanParamDTO); |
|
|
textSyncScanResult = ScanContentUtils.textSyncScan(scanApiHost.concat(textSyncScanMethod),textScanParamDTO); |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
log.error("scanContent exception",e); |
|
|
log.error("scanContent exception",e); |
|
|
this.sendMsg(draftEntity.getTitle(),String.format(ModuleConstant.MSG_ARTICLE_PUBLISH_ERROR, draftEntity.getTitle()); |
|
|
this.sendMsg(draftEntity.getTitle(),String.format(ModuleConstant.MSG_ARTICLE_PUBLISH_ERROR, draftEntity.getTitle())); |
|
|
this.updateDraftPublishStatus(draftId,DraftConstant.AUDITFAIL) |
|
|
this.updateDraftPublishStatus(draftId,DraftConstant.AUDITFAIL); |
|
|
} |
|
|
} |
|
|
SyncScanResult result = new SyncScanResult(); |
|
|
SyncScanResult result = new SyncScanResult(); |
|
|
if (imgSyncScanResult.isAllPass()){ |
|
|
if (imgSyncScanResult.isAllPass()){ |
|
@ -987,7 +987,7 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
log.error("scanAllPassPublishArticle update db exception", e); |
|
|
log.error("scanAllPassPublishArticle update db exception", e); |
|
|
this.sendMsg(draft.getTitle(), String.format(ModuleConstant.MSG_ARTICLE_PUBLISH_ERROR, draft.getTitle())); |
|
|
this.sendMsg(draft.getTitle(), String.format(ModuleConstant.MSG_ARTICLE_PUBLISH_ERROR, draft.getTitle())); |
|
|
this.updateDraftPublishStatus(draftId,DraftConstant.AUDITFAIL) |
|
|
this.updateDraftPublishStatus(draftId,DraftConstant.AUDITFAIL); |
|
|
throw new RenException(EpmetErrorCode.SERVER_ERROR.getCode(), EpmetErrorCode.SERVER_ERROR.getMsg()); |
|
|
throw new RenException(EpmetErrorCode.SERVER_ERROR.getCode(), EpmetErrorCode.SERVER_ERROR.getMsg()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|