Commit 7546247a299743e45e0fb5e870b2b714a880b3a9
Merge branch 'dev'
Showing
3 changed files
with
28 additions
and
26 deletions
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
| ... | ... | @@ -53,7 +53,7 @@ spring.rabbitmq.listener.direct.acknowledge-mode=manual |
| 53 | 53 | spring.rabbitmq.listener.simple.acknowledge-mode=manual |
| 54 | 54 | |
| 55 | 55 | #\u8bdd\u9898\u8bc4\u8bba\u5206\u4eabh5 |
| 56 | -topic_comment_shareH5=http://www.baidu.com?id= | |
| 56 | +#topic_comment_shareH5=http://wjjh5test.cnlive.com/cnShareTopic.html?tid= | |
| 57 | 57 | |
| 58 | 58 | #\u5173\u95edspringboot\u63d0\u4f9b\u7684\u9ed8\u8ba4ico |
| 59 | 59 | spring.mvc.favicon.enabled = false | ... | ... |
src/main/resources/templates/page/topic.html
| ... | ... | @@ -172,23 +172,23 @@ |
| 172 | 172 | <div class="th-inner ">话题ID</div> |
| 173 | 173 | <div class="fht-cell"></div> |
| 174 | 174 | </th> |
| 175 | - <th style="text-align: center; width: 6%; " | |
| 175 | + <th style="text-align: center; width: 4%; " | |
| 176 | 176 | data-field="topic_user_name" tabindex="0"> |
| 177 | 177 | <div class="th-inner ">sp名称</div> |
| 178 | 178 | <div class="fht-cell"></div> |
| 179 | 179 | </th> |
| 180 | - <th style="text-align: center; width: 6%; " data-field="topic_user_ip" | |
| 180 | + <th style="text-align: center; width: 5%; " data-field="topic_user_ip" | |
| 181 | 181 | tabindex="0"> |
| 182 | 182 | <div class="th-inner ">话题图片</div> |
| 183 | 183 | <div class="fht-cell"></div> |
| 184 | 184 | </th> |
| 185 | - <th style="text-align: center; width: 14%; " | |
| 185 | + <th style="text-align: center; width: 16%; " | |
| 186 | 186 | data-field="topic_user_avatar" tabindex="0"> |
| 187 | 187 | <div class="th-inner ">话题标题 |
| 188 | 188 | </div> |
| 189 | 189 | <div class="fht-cell"></div> |
| 190 | 190 | </th> |
| 191 | - <th style="text-align: center; width: 10%; " data-field="topic_user_ip" | |
| 191 | + <th style="text-align: center; width: 20%; " data-field="topic_user_ip" | |
| 192 | 192 | tabindex="0"> |
| 193 | 193 | <div class="th-inner ">话题描述</div> |
| 194 | 194 | <div class="fht-cell"></div> |
| ... | ... | @@ -211,7 +211,7 @@ |
| 211 | 211 | <div class="fht-cell"></div> |
| 212 | 212 | </th> |
| 213 | 213 | |
| 214 | - <th style="text-align: center; width: 10%; " data-field="is_hot_name" | |
| 214 | + <th style="text-align: center; width: 8%; " data-field="is_hot_name" | |
| 215 | 215 | tabindex="0"> |
| 216 | 216 | <div class="th-inner ">审核消息</div> |
| 217 | 217 | <div class="fht-cell"></div> |
| ... | ... | @@ -226,7 +226,7 @@ |
| 226 | 226 | <div class="th-inner ">话题送审时间</div> |
| 227 | 227 | <div class="fht-cell"></div> |
| 228 | 228 | </th> |
| 229 | - <th style="text-align: center; width: 16%; " data-field="action" | |
| 229 | + <th style="text-align: center; width: 8%; " data-field="action" | |
| 230 | 230 | tabindex="0"> |
| 231 | 231 | <div class="th-inner ">操作 |
| 232 | 232 | </div> |
| ... | ... | @@ -252,11 +252,13 @@ |
| 252 | 252 | th:src="@{${topic.topic_image}}" width="60px" height="60px" |
| 253 | 253 | alt="话题图片" th:if="${topic.topic_image!=null and topic.topic_image!=''}"></div> |
| 254 | 254 | </td> |
| 255 | - <td style="text-align: center; vertical-align:middle; width: 14%;" | |
| 256 | - th:text="${topic.title}">优秀传统文化与现代幼儿教育 教师研修班 | |
| 255 | + <td style="text-align: center; vertical-align:middle; "> | |
| 256 | + <textarea class="form-control" name="title" cols="50" rows="3" | |
| 257 | + id="title" th:text="${topic.title}">优秀传统文化与现代幼儿教育 教师研修班</textarea> | |
| 257 | 258 | </td> |
| 258 | - <td style="text-align: center; vertical-align:middle; width: 10%;" | |
| 259 | - th:text="${topic.topic_text}">优秀传统文化与现代幼儿教育 教师研修班 | |
| 259 | + <td style="text-align: center; vertical-align:middle; "> | |
| 260 | + <textarea class="form-control" name="title_text" cols="50" rows="3" | |
| 261 | + id="title_text" th:text="${topic.topic_text}">优秀传统文化与现代幼儿教育 教师研修班</textarea> | |
| 260 | 262 | </td> |
| 261 | 263 | <td style="text-align: center; vertical-align:middle; width: 3%;"> |
| 262 | 264 | <span th:if="${topic.shenhe_type==1}">免审</span> | ... | ... |