Commit a3c2f81d49fbfff95afceccc5fc7dfb37979716c

Authored by 周伟鹏
1 parent 71482abd

update

src/main/java/com/cnlive/shenhe/api/VideosControllerApi.java
@@ -15,7 +15,6 @@ import org.slf4j.LoggerFactory; @@ -15,7 +15,6 @@ import org.slf4j.LoggerFactory;
15 import org.springframework.beans.factory.annotation.Autowired; 15 import org.springframework.beans.factory.annotation.Autowired;
16 import org.springframework.stereotype.Controller; 16 import org.springframework.stereotype.Controller;
17 import org.springframework.web.bind.annotation.PostMapping; 17 import org.springframework.web.bind.annotation.PostMapping;
18 -import org.springframework.web.bind.annotation.RequestBody;  
19 import org.springframework.web.bind.annotation.RequestMapping; 18 import org.springframework.web.bind.annotation.RequestMapping;
20 import org.springframework.web.bind.annotation.ResponseBody; 19 import org.springframework.web.bind.annotation.ResponseBody;
21 20
@@ -40,10 +39,9 @@ public class VideosControllerApi { @@ -40,10 +39,9 @@ public class VideosControllerApi {
40 39
41 @PostMapping("/import") 40 @PostMapping("/import")
42 @ResponseBody 41 @ResponseBody
43 - public ResponseBean impotVideo(@RequestBody String param) { 42 + public ResponseBean impotVideo(String param) {
44 logger.info("点播入库,param====="+param); 43 logger.info("点播入库,param====="+param);
45 - JSONObject pjson = JSONObject.parseObject(param);  
46 - JSONObject json = pjson.getJSONObject("param"); 44 + JSONObject json = JSONObject.parseObject(param);
47 ShySites shySites = new ShySites(); 45 ShySites shySites = new ShySites();
48 ShyVideos shyVideos = new ShyVideos(); 46 ShyVideos shyVideos = new ShyVideos();
49 shyVideos.setState(CommonConst.AUDIT_INTT); 47 shyVideos.setState(CommonConst.AUDIT_INTT);