Commit 3e5cdf59bd71f77cf0884aea2395dcaaebce32a0

Authored by liwei2917
1 parent c2f3e20a

修改评论审核类型是话题时分享和标题从互动云获取

src/main/java/com/cnlive/shenhe/api/CommentsControllerApi.java
... ... @@ -33,8 +33,8 @@ public class CommentsControllerApi {
33 33 @Autowired
34 34 TopicServiceImpl topicService;
35 35  
36   - @Value("${topic_comment_shareH5}")
37   - String topic_comment_shareH5;
  36 +// @Value("${topic_comment_shareH5}")
  37 +// String topic_comment_shareH5;
38 38  
39 39 /**
40 40 * @Auther: chenhao
... ... @@ -66,19 +66,19 @@ public class CommentsControllerApi {
66 66 if (CommonUtils.isNotEmpty(commentTime)) {
67 67 timestamp = CommonUtils.getTimestamp(commentTime, "yyyy-MM-dd HH:mm");
68 68 }
69   -
70   - if(type.equals(CommonConst.CATEGORY_TOPIC)){//评论类型是话题
71   - if(level==1){
72   - ShyTopic shyTopic = new ShyTopic();
73   - shyTopic.setTopic_id(programId);
74   - shyTopic=topicService.getShyTopic(shyTopic);
75   - if(shyTopic!=null){
76   - commentTitle=shyTopic.getTitle();//设置标题
77   - originalUrl=topic_comment_shareH5+programId;
78   - }
79   - }
80   -
81   - }
  69 +// 2020.01.07 修改评论审核类型是话题时分享和标题从互动云获取
  70 +// if(type.equals(CommonConst.CATEGORY_TOPIC)){//评论类型是话题
  71 +// if(level==1){
  72 +// ShyTopic shyTopic = new ShyTopic();
  73 +// shyTopic.setTopic_id(programId);
  74 +// shyTopic=topicService.getShyTopic(shyTopic);
  75 +// if(shyTopic!=null){
  76 +// commentTitle=shyTopic.getTitle();//设置标题
  77 +// originalUrl=topic_comment_shareH5+programId;
  78 +// }
  79 +// }
  80 +//
  81 +// }
82 82  
83 83 //判断是否存在
84 84 ShyComments shyComments = new ShyComments();
... ...
src/main/resources/application.properties
... ... @@ -50,7 +50,7 @@ spring.rabbitmq.listener.direct.acknowledge-mode=manual
50 50 spring.rabbitmq.listener.simple.acknowledge-mode=manual
51 51  
52 52 #\u8bdd\u9898\u8bc4\u8bba\u5206\u4eabh5
53   -topic_comment_shareH5=http://www.baidu.com?id=
  53 +#topic_comment_shareH5=http://wjjh5test.cnlive.com/cnShareTopic.html?tid=
54 54  
55 55 #\u5173\u95edspringboot\u63d0\u4f9b\u7684\u9ed8\u8ba4ico
56 56 spring.mvc.favicon.enabled = false
... ...