/// <summary> /// 获取聊天室信息 /// </summary> /// <returns></returns> public JsonResult GetChatinfo(string tid, string interactionID, string queueName , string agentID, string placeID, string nickName, string host, string port, int isMeeting) { AjaxReturn result = new AjaxReturn(); ChatRoom Myroom = ChatRoomCache.GetInstance().GetRoom(tid, interactionID); if (Myroom != null) { result.Code = 1; result.d = new { ChatBeginTime = Myroom.CreateDate.Ticks, ChatID = string.Format("{0}{1:yyyyMMddHHmmss}C", agentID, Myroom.CreateDate), StrChatBeginTime = Myroom.CreateDate.ToString("yyyy-MM-dd HH:mm:ss") }; } return(new JsonpResult() { Data = result, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }