Beispiel #1
0
        /// <summary>
        ///收到客户端用户发送的ID响应
        /// </summary>
        /// <param name="UserID"></param>
        public void GetUser(string UserID)
        {
            //判断有可用表具服务提示
            WebApp.Controllers.MainController con = new Controllers.MainController();
            string Info = "";
            //Clients.All.showMessage("表具服务", UserID, "ServerSignalR",Info);
            //判断有无其它可用消息
            //MessageType, RceiveUser, SendUser, Info
            // Clients.All.showMessage("短消息", "发送人", "接收人","内容");

            string MsgInfo     = con.MessageRead(UserID);
            string MsgId       = MsgInfo.Split(';')[0].ToString().Trim();
            string MessageInfo = MsgInfo.Split(';')[1].ToString().Trim();

            if (Info != "0;info" || MsgInfo != "0;info")
            {
                Clients.All.showMessage("表具服务", UserID, "ServerSignalR", Info, "即时通信", MsgId != "0" ? UserID : "", MessageInfo, MsgId);
            }
        }
Beispiel #2
0
        /// <summary>
        ///收到客户端用户发送的ID响应
        /// </summary>
        /// <param name="UserID"></param>
        public void GetUser(string UserID)
        {
            //判断有可用表具服务提示
            WebApp.Controllers.MainController con = new Controllers.MainController();
            string Info = "";
            //Clients.All.showMessage("表具服务", UserID, "ServerSignalR",Info);
            //判断有无其它可用消息
            //MessageType, RceiveUser, SendUser, Info
            // Clients.All.showMessage("短消息", "发送人", "接收人","内容");

            string MsgInfo = con.MessageRead(UserID);
            string MsgId = MsgInfo.Split(';')[0].ToString().Trim();
            string MessageInfo = MsgInfo.Split(';')[1].ToString().Trim();

            if (Info != "0;info" || MsgInfo != "0;info")
            {
                Clients.All.showMessage("表具服务", UserID, "ServerSignalR", Info, "即时通信", MsgId != "0" ? UserID : "", MessageInfo, MsgId);
            }
        }