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