Commit 5640f9f91a8131139a68f56e21c51c1bbfe315b5

Authored by 刘炯
1 parent 3287f4d1

1

8.直播云/1.1 获取直播活动信息接口.md
@@ -102,11 +102,11 @@ HTTP GET @@ -102,11 +102,11 @@ HTTP GET
102 102
103 103
104 ``` java 104 ``` java
105 -public String getPlayInfo() { 105 +public Object getPlayInfo() {
106 String result = ""; 106 String result = "";
107 Map params = new HashMap<>(); 107 Map params = new HashMap<>();
108 params.put("sp_id", "iqhpk8pl19"); 108 params.put("sp_id", "iqhpk8pl19");
109 - params.put("customID", "d849bb4277be42799df3ffc21654d949"); 109 + params.put("activityId", "d849bb4277be42799df3ffc21654d949");
110 params.put("timestamp", System.currentTimeMillis()/1000+""); 110 params.put("timestamp", System.currentTimeMillis()/1000+"");
111 String url = OpenUtil.buildURL("http://api.cnlive.com/open/api2/zbsc/getLiveActivityPlayInfo", params, "672db30805f848f59ec3728f8347a4a0"); 111 String url = OpenUtil.buildURL("http://api.cnlive.com/open/api2/zbsc/getLiveActivityPlayInfo", params, "672db30805f848f59ec3728f8347a4a0");
112 HttpURLConnection connection; 112 HttpURLConnection connection;
@@ -136,7 +136,7 @@ public String getPlayInfo() { @@ -136,7 +136,7 @@ public String getPlayInfo() {
136 136
137 if(BaseUtil.notBlank(result)) { 137 if(BaseUtil.notBlank(result)) {
138 JSONObject resultJson = JSONObject.parseObject(result); 138 JSONObject resultJson = JSONObject.parseObject(result);
139 - return resultJson.getJSONObject("data").getString("hls_url_rate2"); 139 + return resultJson;
140 } 140 }
141 141
142 return ""; 142 return "";