Commit 71482abdeb87fa94ac99fbdd32026a2a36b02bde
1 parent
2b887ecc
bug测试
Showing
1 changed file
with
4 additions
and
3 deletions
src/main/java/com/cnlive/shenhe/api/VideosControllerApi.java
| @@ -40,9 +40,10 @@ public class VideosControllerApi { | @@ -40,9 +40,10 @@ public class VideosControllerApi { | ||
| 40 | 40 | ||
| 41 | @PostMapping("/import") | 41 | @PostMapping("/import") |
| 42 | @ResponseBody | 42 | @ResponseBody |
| 43 | - public ResponseBean impotVideo(@RequestBody JSONObject param) { | ||
| 44 | - logger.info("点播入库,param====="+param.toJSONString()); | ||
| 45 | - JSONObject json = param.getJSONObject("param"); | 43 | + public ResponseBean impotVideo(@RequestBody String param) { |
| 44 | + logger.info("点播入库,param====="+param); | ||
| 45 | + JSONObject pjson = JSONObject.parseObject(param); | ||
| 46 | + JSONObject json = pjson.getJSONObject("param"); | ||
| 46 | ShySites shySites = new ShySites(); | 47 | ShySites shySites = new ShySites(); |
| 47 | ShyVideos shyVideos = new ShyVideos(); | 48 | ShyVideos shyVideos = new ShyVideos(); |
| 48 | shyVideos.setState(CommonConst.AUDIT_INTT); | 49 | shyVideos.setState(CommonConst.AUDIT_INTT); |