Commit 7ee640103ad34171a22c63941b969613ebbbaddc
1 parent
ebcc6fd1
直播审核测试
Showing
1 changed file
with
4 additions
and
3 deletions
src/main/java/com/cnlive/shenhe/api/LiveControllerApi.java
| ... | ... | @@ -40,7 +40,7 @@ public class LiveControllerApi { |
| 40 | 40 | @Autowired |
| 41 | 41 | LiveServiceImpl liveService; |
| 42 | 42 | |
| 43 | - @RequestMapping("/import") | |
| 43 | + @PostMapping("/import") | |
| 44 | 44 | @ResponseBody |
| 45 | 45 | public JSONObject impotVideo(String data) { |
| 46 | 46 | JSONObject map = new JSONObject(); |
| ... | ... | @@ -65,12 +65,12 @@ public class LiveControllerApi { |
| 65 | 65 | String startTime = json.getString("startTime");//开始时间 |
| 66 | 66 | Date timestamp_start =null; |
| 67 | 67 | if (CommonUtils.isNotEmpty(startTime)) { |
| 68 | - timestamp_start = CommonUtils.getTimestamp(startTime, "yyyy-MM-dd HH:mm:ss"); | |
| 68 | + timestamp_start = new Date(Long.valueOf(startTime)); | |
| 69 | 69 | } |
| 70 | 70 | String endTime = json.getString("endTime");//结束时间 |
| 71 | 71 | Date timestamp_end =null; |
| 72 | 72 | if (CommonUtils.isNotEmpty(endTime)) { |
| 73 | - timestamp_end = CommonUtils.getTimestamp(endTime, "yyyy-MM-dd HH:mm:ss"); | |
| 73 | + timestamp_end = new Date(Long.valueOf(endTime)); | |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | ShyLive shylive1 = new ShyLive(); |
| ... | ... | @@ -116,6 +116,7 @@ public class LiveControllerApi { |
| 116 | 116 | shylive1.setActivity_name(activityName);//设置直播活动名称 |
| 117 | 117 | shylive1.setActivity_status(activityStatus);//设置直播活动状态 |
| 118 | 118 | shylive1.setChannel_id(channelId);//设置直播频道 |
| 119 | + shylive1.setSp_id(spId);//设置spid | |
| 119 | 120 | shylive1.setShenhe_state(1);//状态 1:未认领 2.已领未审,3:已审通过,4:已审拒绝 |
| 120 | 121 | if(activityStatus==3){//发布直播 |
| 121 | 122 | shylive1.setActivity_start_time(timestamp_start); | ... | ... |