public IHttpActionResult FavSelect(FavSelectModel model) { ApiServerMsg result = new ApiServerMsg(); try { if (XzyWebSocket._dicSockets.ContainsKey(model.uuid)) { var res = XzyWebSocket._dicSockets[model.uuid].weChatThread.Wx_FavGetItem(model.favid); result.Success = true; result.Context = res; return(Ok(result)); } else { result.Success = false; result.Context = "不存在该websocket连接"; return(Ok(result)); } } catch (Exception e) { result.Success = false; result.ErrContext = e.Message; return(Ok(result)); } }