Commit 09cf57f2db1b86e3a9a99aaeaa03c598395a726a

Authored by 宋亚南
1 parent f05e6754

机审对人工已审内容不做覆盖

src/main/java/com/cnlive/shenhe/job/YiDunUrlResultJob.java
@@ -174,7 +174,7 @@ public class YiDunUrlResultJob { @@ -174,7 +174,7 @@ public class YiDunUrlResultJob {
174 newYiDunMsg.setDesc_msg(desc.toString()); 174 newYiDunMsg.setDesc_msg(desc.toString());
175 newYiDunMsg.setCheck_status(2); 175 newYiDunMsg.setCheck_status(2);
176 //修改图文状态 176 //修改图文状态
177 - contentService.callback(String.valueOf(shyContent.getId()), desc.toString(), CommonConst.AUDIT_REFUSE, "", shyContent.getUpdater()); 177 + contentService.callback(String.valueOf(shyContent.getId()), desc.toString(), CommonConst.AUDIT_REFUSE, "00001", shyContent.getUpdater());
178 } 178 }
179 } catch (NumberFormatException e) { 179 } catch (NumberFormatException e) {
180 e.printStackTrace(); 180 e.printStackTrace();
src/main/java/com/cnlive/shenhe/service/serviceImpl/ContentServiceImpl.java
@@ -259,10 +259,14 @@ public class ContentServiceImpl implements ContentService { @@ -259,10 +259,14 @@ public class ContentServiceImpl implements ContentService {
259 boolean success = true; 259 boolean success = true;
260 ShyContent content = shyContentMapper.selectByPrimaryKey(Integer.parseInt(contentId)); 260 ShyContent content = shyContentMapper.selectByPrimaryKey(Integer.parseInt(contentId));
261 logger.info("contentId:{},content:{}", contentId, content); 261 logger.info("contentId:{},content:{}", contentId, content);
262 - if (content != null && (CommonConst.RECEIVE_AUDIT.equals(content.getReceive_status()) || CommonConst.RECEIVE_AFTER.equals(content.getReceive_status()))) {  
263 - logger.error("图文审核回调成功但已人工审/领取,图文id:{}", content.getId());  
264 - return success; 262 + if ("00001".equals(userId)) {
  263 + if (content != null && content.getShenhe_type() == 3) {
  264 + logger.error("图文审核回调成功但已人工处理,图文id:{}", content.getId());
  265 + return success;
  266 + }
  267 + userId = "";
265 } 268 }
  269 +
266 JSONObject result = new JSONObject(); 270 JSONObject result = new JSONObject();
267 try { 271 try {
268 if (CommonUtils.isNotEmpty(content.getContent_tag()) && "content".equals(content.getContent_tag())) { 272 if (CommonUtils.isNotEmpty(content.getContent_tag()) && "content".equals(content.getContent_tag())) {