Commit 6c5014b550fdcd2f6403bc54b4fe1d56edfd2e2e
1 parent
b3a9e4ab
修改直播申请非必填参数的默认值
Showing
1 changed file
with
3 additions
and
3 deletions
src/main/java/com/cnlive/shenhe/api/LiveApplyControllerApi.java
| @@ -65,11 +65,11 @@ public class LiveApplyControllerApi { | @@ -65,11 +65,11 @@ public class LiveApplyControllerApi { | ||
| 65 | Integer contentProperty = Integer.parseInt(json.getString("contentProperty"));//内容属性:1商业类活动 0非商业活动 | 65 | Integer contentProperty = Integer.parseInt(json.getString("contentProperty"));//内容属性:1商业类活动 0非商业活动 |
| 66 | String simpleContent = json.getString("simpleContent");//内容简述 | 66 | String simpleContent = json.getString("simpleContent");//内容简述 |
| 67 | String live_type = json.getString("liveType");//直播类型 | 67 | String live_type = json.getString("liveType");//直播类型 |
| 68 | - String keys = json.getString("keys");//要点报备:0品牌植入 1广告植入 2商品推销 3网家家独家麦标 | 68 | + String keys = json.getString("keys").equals("")?"-1":json.getString("keys");//要点报备:0品牌植入 1广告植入 2商品推销 3网家家独家麦标 |
| 69 | String livePlace = json.getString("livePlace");//直播地点 | 69 | String livePlace = json.getString("livePlace");//直播地点 |
| 70 | String pushUrl = json.getString("pushUrl");//推流地址 | 70 | String pushUrl = json.getString("pushUrl");//推流地址 |
| 71 | - String pullUrl = json.getString("pullUrl");//拉流地址 | ||
| 72 | - String pullSource = json.getString("pullSource");//拉流来源 | 71 | + String pullUrl = json.getString("pullUrl").equals("无拉流地址")?"":json.getString("pullUrl");//拉流地址 |
| 72 | + String pullSource = json.getString("pullSource").equals("")?"无来源":json.getString("pullSource");//拉流来源 | ||
| 73 | String platforms = json.getString("platforms");//播出平台及通道:0网家家 1CNLive网站 2@TV互动电视 | 73 | String platforms = json.getString("platforms");//播出平台及通道:0网家家 1CNLive网站 2@TV互动电视 |
| 74 | String startTime = json.getString("preStartTime");//预计开始时间 | 74 | String startTime = json.getString("preStartTime");//预计开始时间 |
| 75 | Date timestamp_start =null; | 75 | Date timestamp_start =null; |