///<summary> ///用户发送消息 /// </summary> public void UserSendMsg(string userNum, string msg) { if (whichMode == 0) { BLL.OnlineCusSvrLB.User bll = new OnlineCusSvrLB.User(); bll.SendMsg(userNum, msg); } else { BLL.OnlineCusSvrCM.User bll = new OnlineCusSvrCM.User(); bll.SendMsg(userNum, msg); } }
/// <summary> /// 用户接收消息 /// </summary> /// <remarks>&* 为无效符号</remarks> public string UserReceiveMsg(string userNum) { if (whichMode == 0) { BLL.OnlineCusSvrLB.User bll = new OnlineCusSvrLB.User(); return(bll.ReceiveMsg(userNum)); } else { BLL.OnlineCusSvrCM.User bll = new OnlineCusSvrCM.User(); return(bll.ReceiveMsg(userNum)); } }
//用户是否建立连接成功(即是否有可分配的客服) public string IsConnected(int intervalMinites, string timeIdentity, string userNum, bool cusSvrBusy) { //if (cusSvrBusy == false) //{ // if (VerifyTimeIdentity(intervalMinites, timeIdentity) == false) // { // return "{\"isTimeIdentityRight\":\"false\"}"; // } //} if (whichMode == 0) { BLL.OnlineCusSvrLB.User bll = new OnlineCusSvrLB.User(); return(bll.IsConnected(userNum)); } else { BLL.OnlineCusSvrCM.User bll = new OnlineCusSvrCM.User(); return(bll.IsConnected(userNum)); } }