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