Commit 2b887eccf7063625f1b38cd981acb02cf3222d58

Authored by 周伟鹏
1 parent ce6d0884

入库参数结构修改

src/main/java/com/cnlive/shenhe/api/CommentsControllerApi.java
... ... @@ -9,6 +9,8 @@ import com.cnlive.shenhe.serviceImpl.CommentsServiceImpl;
9 9 import com.cnlive.shenhe.utils.AuditPass;
10 10 import com.cnlive.shenhe.utils.CommonConst;
11 11 import com.cnlive.shenhe.utils.CommonUtils;
  12 +import org.slf4j.Logger;
  13 +import org.slf4j.LoggerFactory;
12 14 import org.springframework.beans.factory.annotation.Autowired;
13 15 import org.springframework.stereotype.Controller;
14 16 import org.springframework.web.bind.annotation.PostMapping;
... ... @@ -22,7 +24,7 @@ import java.util.List;
22 24 @Controller
23 25 @RequestMapping("/api/comments")
24 26 public class CommentsControllerApi {
25   -
  27 + private static Logger logger = LoggerFactory.getLogger(CommentsControllerApi.class);
26 28 @Autowired
27 29 AuditPass Pass;
28 30 @Autowired
... ... @@ -35,7 +37,9 @@ public class CommentsControllerApi {
35 37 */
36 38 @PostMapping("/import")
37 39 @ResponseBody
38   - public ResponseBean impotComment(@RequestBody JSONObject json) {
  40 + public ResponseBean impotComment(@RequestBody JSONObject param) {
  41 + logger.info("评论入库,param====="+param.toJSONString());
  42 + JSONObject json = param.getJSONObject("param");
39 43 ShyComments shyComments = new ShyComments();
40 44 ShySites shySites = new ShySites();
41 45 shyComments.setState(CommonConst.AUDIT_INTT);
... ...
src/main/java/com/cnlive/shenhe/api/VideosControllerApi.java
... ... @@ -40,8 +40,9 @@ public class VideosControllerApi {
40 40  
41 41 @PostMapping("/import")
42 42 @ResponseBody
43   - public ResponseBean impotVideo(@RequestBody JSONObject json) {
44   - logger.info("点播入库,json====="+json.toJSONString());
  43 + public ResponseBean impotVideo(@RequestBody JSONObject param) {
  44 + logger.info("点播入库,param====="+param.toJSONString());
  45 + JSONObject json = param.getJSONObject("param");
45 46 ShySites shySites = new ShySites();
46 47 ShyVideos shyVideos = new ShyVideos();
47 48 shyVideos.setState(CommonConst.AUDIT_INTT);
... ...