|
@@ -227,11 +227,11 @@ public class IMHelper {
|
|
|
*/
|
|
|
public IMApiResultInfo startRecord(String hostUserId, String roomId) throws Exception {
|
|
|
if (hostUserId == null) {
|
|
|
- throw new IllegalArgumentException("Paramer 'userId' is required");
|
|
|
+ throw new IllegalArgumentException("Paramer 'hostUserId' is required");
|
|
|
}
|
|
|
|
|
|
- if (hostUserId == null) {
|
|
|
- throw new IllegalArgumentException("Paramer 'groupId' is required");
|
|
|
+ if (roomId == null) {
|
|
|
+ throw new IllegalArgumentException("Paramer 'roomId' is required");
|
|
|
}
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("mode","3");
|
|
@@ -242,7 +242,7 @@ public class IMHelper {
|
|
|
jsonObject.put("sliceMin","60");
|
|
|
jsonObject.put("hostUserId",hostUserId);
|
|
|
JSONObject json = new JSONObject();
|
|
|
- json.put("sessionId",roomQuery(roomId));
|
|
|
+ json.put("sessionId","roomQuery(roomId)");
|
|
|
json.put("config",jsonObject);
|
|
|
|
|
|
String body = json.toJSONString();
|