Commit bce2b10e472fe485cbc2d20fe0dd09c81faacb88

Authored by liwei2917
1 parent a65ddf3a

图文免审和机审修改

src/main/java/com/cnlive/shenhe/api/ContentControllerApi.java
@@ -50,7 +50,7 @@ public class ContentControllerApi { @@ -50,7 +50,7 @@ public class ContentControllerApi {
50 List<ShyContent> contentList = contentService.findshyContent(shyContent); 50 List<ShyContent> contentList = contentService.findshyContent(shyContent);
51 51
52 //获取审核类型 52 //获取审核类型
53 - Integer shenheType = contentService.getShenheType(json.getInteger("spId")); 53 + Integer shenheType = contentService.getShenheType(json.getInteger("spId"),"content");
54 //存在则更新 54 //存在则更新
55 if (contentList.size() > 0) { 55 if (contentList.size() > 0) {
56 ShyContent shyContent1 = contentList.get(0); 56 ShyContent shyContent1 = contentList.get(0);
@@ -127,7 +127,7 @@ public class ContentControllerApi { @@ -127,7 +127,7 @@ public class ContentControllerApi {
127 shyContent.setContent_tag("moment");//朋友圈标签 127 shyContent.setContent_tag("moment");//朋友圈标签
128 List<ShyContent> contentList = contentService.findshyContent(shyContent); 128 List<ShyContent> contentList = contentService.findshyContent(shyContent);
129 //获取审核类型 129 //获取审核类型
130 - Integer shenheType = contentService.getShenheType(json.getInteger("spId")); 130 + Integer shenheType = contentService.getShenheType(json.getInteger("spId"),"moment");
131 //存在则更新 131 //存在则更新
132 if (contentList.size() > 0) { 132 if (contentList.size() > 0) {
133 ShyContent shyContent1 = contentList.get(0); 133 ShyContent shyContent1 = contentList.get(0);
src/main/java/com/cnlive/shenhe/job/ContentJob.java
@@ -68,7 +68,7 @@ public class ContentJob { @@ -68,7 +68,7 @@ public class ContentJob {
68 for (ShyContent content : shyContentList) { 68 for (ShyContent content : shyContentList) {
69 logger.info("定时发送数美检测的content_id:"+content.getId()); 69 logger.info("定时发送数美检测的content_id:"+content.getId());
70 //数美图片过滤 70 //数美图片过滤
71 - contentService.contentFilter(content,""); 71 + contentService.contentFilter(content,"NEWS");
72 } 72 }
73 } 73 }
74 } 74 }
src/main/java/com/cnlive/shenhe/serviceImpl/ContentServiceImpl.java
@@ -336,7 +336,7 @@ public class ContentServiceImpl { @@ -336,7 +336,7 @@ public class ContentServiceImpl {
336 * 获得审核类型 336 * 获得审核类型
337 * @param spId 337 * @param spId
338 */ 338 */
339 - public Integer getShenheType(Integer spId){ 339 + public Integer getShenheType(Integer spId,String ContentTag){
340 340
341 //获取图文免审sp 341 //获取图文免审sp
342 List<Integer> sites = sitesService.getBusinessList(CommonConst.BUSINESS_CONTENT); 342 List<Integer> sites = sitesService.getBusinessList(CommonConst.BUSINESS_CONTENT);
@@ -346,7 +346,11 @@ public class ContentServiceImpl { @@ -346,7 +346,11 @@ public class ContentServiceImpl {
346 if(sites.contains(spId)){ 346 if(sites.contains(spId)){
347 shenheType=1;//免审 347 shenheType=1;//免审
348 }else{ 348 }else{
349 - shenheType=2;//机审 349 + if("content".equals(ContentTag)){
  350 + shenheType=2;//机审
  351 + }else{
  352 + shenheType=3;//人工审
  353 + }
350 } 354 }
351 return shenheType; 355 return shenheType;
352 } 356 }
src/main/java/com/cnlive/shenhe/utils/AntiFraudUtil.java
@@ -48,12 +48,12 @@ public class AntiFraudUtil { @@ -48,12 +48,12 @@ public class AntiFraudUtil {
48 //queryVideoResult("02b649b7-3451-403e-abd0-592302cec2a0"); 48 //queryVideoResult("02b649b7-3451-403e-abd0-592302cec2a0");
49 49
50 try { 50 try {
51 - Map<Object, Object> hashMap = new HashMap<Object, Object>();  
52 - hashMap.put("11", "1111");  
53 - String object = (String) hashMap.get("11");  
54 - String object2 = (String) hashMap.get("22");  
55 - System.out.println(object);  
56 - System.out.println(object2); 51 +// Map<Object, Object> hashMap = new HashMap<Object, Object>();
  52 +// hashMap.put("11", "1111");
  53 +// String object = (String) hashMap.get("11");
  54 +// String object2 = (String) hashMap.get("22");
  55 +// System.out.println(object);
  56 +// System.out.println(object2);
57 57
58 // System.out.println(addBlackContents("2222")); 58 // System.out.println(addBlackContents("2222"));
59 } catch (Exception e) { 59 } catch (Exception e) {
@@ -394,7 +394,7 @@ try { @@ -394,7 +394,7 @@ try {
394 private static JSONObject getResult(JSONObject result) { 394 private static JSONObject getResult(JSONObject result) {
395 395
396 if (result != null) { 396 if (result != null) {
397 - System.out.println("数美图片过滤返回结果" + result); 397 + System.out.println("数美过滤返回结果" + result);
398 JSONObject jsonObj = new JSONObject(); 398 JSONObject jsonObj = new JSONObject();
399 Integer code = result.getInteger("code"); 399 Integer code = result.getInteger("code");
400 400