|  | @ -150,23 +150,23 @@ public class NoticeImUtill {
 | 
	
		
			
				|  |  |         return messages;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public static JSONObject getTopicMessage(String baseUrl,String topicId,String startMsgId,String endMsgId,int page,int pagesize,String uid){
 | 
	
		
			
				|  |  |         String url = baseUrl
 | 
	
		
			
				|  |  |                 + "api/v2/sessions/topic/"+topicId+"/messages?topic_id="+topicId+"&end="+startMsgId
 | 
	
		
			
				|  |  |                 +"&start="+(endMsgId==null?"":endMsgId)+"&page="+page+"&pagesize="+pagesize+"&user="+uid;
 | 
	
		
			
				|  |  |         try{
 | 
	
		
			
				|  |  |             String ret = HttpClientUtil.get(url, "UTF-8");
 | 
	
		
			
				|  |  |             JSONObject obj = new JSONObject(ret);
 | 
	
		
			
				|  |  |             if(obj.getInt("status")==-1){
 | 
	
		
			
				|  |  |                 throw new RuntimeException(obj.getString("message"));
 | 
	
		
			
				|  |  |             }else{
 | 
	
		
			
				|  |  |                 return  obj.getJSONObject("data");
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }catch (Exception e){
 | 
	
		
			
				|  |  |             return null;
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | //    public static JSONObject getTopicMessage(String baseUrl,String topicId,String startMsgId,String endMsgId,int page,int pagesize,String uid){
 | 
	
		
			
				|  |  | //        String url = baseUrl
 | 
	
		
			
				|  |  | //                + "api/v2/sessions/topic/"+topicId+"/messages?topic_id="+topicId+"&end="+startMsgId
 | 
	
		
			
				|  |  | //                +"&start="+(endMsgId==null?"":endMsgId)+"&page="+page+"&pagesize="+pagesize+"&user="+uid;
 | 
	
		
			
				|  |  | //        try{
 | 
	
		
			
				|  |  | //            String ret = HttpClientUtil.get(url, "UTF-8");
 | 
	
		
			
				|  |  | //            JSONObject obj = new JSONObject(ret);
 | 
	
		
			
				|  |  | //            if(obj.getInt("status")==-1){
 | 
	
		
			
				|  |  | //                throw new RuntimeException(obj.getString("message"));
 | 
	
		
			
				|  |  | //            }else{
 | 
	
		
			
				|  |  | //                return  obj.getJSONObject("data");
 | 
	
		
			
				|  |  | //            }
 | 
	
		
			
				|  |  | //        }catch (Exception e){
 | 
	
		
			
				|  |  | //            return null;
 | 
	
		
			
				|  |  | //        }
 | 
	
		
			
				|  |  | //
 | 
	
		
			
				|  |  | //    }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 删除对应的成员信息在MUC模式中
 | 
	
	
		
			
				|  | @ -201,21 +201,21 @@ public class NoticeImUtill {
 | 
	
		
			
				|  |  |      * @param topicId
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public static JSONObject getTopic(String baseUrl,String topicId) throws  Exception{
 | 
	
		
			
				|  |  |         String url =baseUrl
 | 
	
		
			
				|  |  |                 + "api/v2/sessions/topics/"+topicId+"?topic_id="+topicId;
 | 
	
		
			
				|  |  |         try{
 | 
	
		
			
				|  |  |             String ret = HttpClientUtil.get(url,"utf-8");
 | 
	
		
			
				|  |  |             JSONObject obj = new JSONObject(ret);
 | 
	
		
			
				|  |  |             if(obj.getInt("status")==-1){
 | 
	
		
			
				|  |  |                 throw new RuntimeException("获取议题失败!");
 | 
	
		
			
				|  |  |             }else{
 | 
	
		
			
				|  |  |                 return obj;
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }catch (Exception e){
 | 
	
		
			
				|  |  |             throw new RuntimeException("获取议题失败!");
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | //    public static JSONObject getTopic(String baseUrl,String topicId) throws  Exception{
 | 
	
		
			
				|  |  | //        String url =baseUrl
 | 
	
		
			
				|  |  | //                + "api/v2/sessions/topics/"+topicId+"?topic_id="+topicId;
 | 
	
		
			
				|  |  | //        try{
 | 
	
		
			
				|  |  | //            String ret = HttpClientUtil.get(url,"utf-8");
 | 
	
		
			
				|  |  | //            JSONObject obj = new JSONObject(ret);
 | 
	
		
			
				|  |  | //            if(obj.getInt("status")==-1){
 | 
	
		
			
				|  |  | //                throw new RuntimeException("获取议题失败!");
 | 
	
		
			
				|  |  | //            }else{
 | 
	
		
			
				|  |  | //                return obj;
 | 
	
		
			
				|  |  | //            }
 | 
	
		
			
				|  |  | //        }catch (Exception e){
 | 
	
		
			
				|  |  | //            throw new RuntimeException("获取议题失败!");
 | 
	
		
			
				|  |  | //        }
 | 
	
		
			
				|  |  | //    }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | }
 |