Commit 000a8b74881591d062688e5aeddbc2d813b55e30

Authored by liwei2917
1 parent b7d033ac

修改

src/main/java/com/cnlive/shenhe/api/LiveApplyControllerApi.java
... ... @@ -70,15 +70,22 @@ public class LiveApplyControllerApi {
70 70 String pullUrl = json.getString("pullUrl");//拉流地址
71 71 String platforms = json.getString("platforms");//播出平台及通道:0网家家 1CNLive网站 2@TV互动电视
72 72 Date timestamp_start =null;
  73 +// if (CommonUtils.isNotEmpty(startTime)) {
  74 +// timestamp_start = new Timestamp(Long.valueOf(startTime));
  75 +// }
73 76 if (CommonUtils.isNotEmpty(startTime)) {
74   - timestamp_start = new Timestamp(Long.valueOf(startTime));
  77 + timestamp_start = CommonUtils.getTimestamp(startTime, "yyyy-MM-dd HH:mm:ss");
  78 +
75 79 }
76 80 String endTime = json.getString("preEndTime");//预计结束时间
77 81 Date timestamp_end =null;
  82 +// if (CommonUtils.isNotEmpty(endTime)) {
  83 +// timestamp_end = new Timestamp(Long.valueOf(endTime));
  84 +// }
78 85 if (CommonUtils.isNotEmpty(endTime)) {
79   - timestamp_end = new Timestamp(Long.valueOf(endTime));
80   - }
81   -
  86 + timestamp_end = CommonUtils.getTimestamp(endTime, "yyyy-MM-dd HH:mm:ss");
  87 +
  88 + }
82 89 ShyLiveapply shyliveApply1 = new ShyLiveapply();
83 90 //得到直播活动id去查询是否已有
84 91 shyliveApply1.setActivity_id(activityId);
... ...