Commit 6581fca219d1c7f06ed15f2c39985c723e187f9b
1 parent
5968d32a
修改话题审核回调接口
Showing
1 changed file
with
7 additions
and
2 deletions
src/main/java/com/cnlive/shenhe/api/TopicControllerApi.java
| @@ -124,7 +124,7 @@ public class TopicControllerApi { | @@ -124,7 +124,7 @@ public class TopicControllerApi { | ||
| 124 | 124 | ||
| 125 | @PostMapping("/callback") | 125 | @PostMapping("/callback") |
| 126 | @ResponseBody | 126 | @ResponseBody |
| 127 | - public void callback(@RequestBody String param) { | 127 | + public ResponseBean callback(@RequestBody String param) { |
| 128 | logger.info("话题回调通知,param=====" + param); | 128 | logger.info("话题回调通知,param=====" + param); |
| 129 | JSONObject json = JSONObject.parseObject(param); | 129 | JSONObject json = JSONObject.parseObject(param); |
| 130 | //获取中转服务器消息 | 130 | //获取中转服务器消息 |
| @@ -150,7 +150,12 @@ public class TopicControllerApi { | @@ -150,7 +150,12 @@ public class TopicControllerApi { | ||
| 150 | topic.setShenhe_status(CommonConst.AUDIT_INTT); | 150 | topic.setShenhe_status(CommonConst.AUDIT_INTT); |
| 151 | topic.setShenhe_type(CommonConst.AUDIT_TYPE_USER); | 151 | topic.setShenhe_type(CommonConst.AUDIT_TYPE_USER); |
| 152 | } | 152 | } |
| 153 | - topicService.updateshyTopic(shyTopic); | 153 | + boolean rs = topicService.updateshyTopic(shyTopic); |
| 154 | + if(rs){ | ||
| 155 | + return new ResponseBean(ErrorEnum.SUCCESS,new JSONObject().put("topic_id", topic_id)); | ||
| 156 | + } | ||
| 157 | + | ||
| 158 | + return new ResponseBean(300,"话题送审回调成功,入库失败",new JSONObject().put("topic_id", topic_id)); | ||
| 154 | } | 159 | } |
| 155 | 160 | ||
| 156 | 161 |