/// <summary> /// 发送登陆测试账号的协议 /// </summary> /// <param name="_Account"></param> /// <param name="_Password"></param> public void SendLoginTestAcountReq(string _Account, string _Password) { Login.LoginTestAcountReq msg = new Login.LoginTestAcountReq() { Account = _Account, Password = _Password, }; CSMessage cmsg = new CSMessage(); cmsg.WriteMsg(1, 1, msg.ToByteArray()); ServiceModel.Instance.SendMessage(cmsg); }
//--------------------------------------------------------------发送消息---------------------------------------------------------------------- /// <summary> /// 发送注册测试账号 /// </summary> /// <param name="_Account"></param> /// <param name="_Password"></param> public void SendRegisterTestAcountReq(string _Account, string _Password) { Login.RegisterTestAcountReq msg = new Login.RegisterTestAcountReq() { Account = "liwei1dao", Password = "******", }; CSMessage cmsg = new CSMessage(); cmsg.WriteMsg(1, 1, msg.ToByteArray()); ServiceModel.Instance.SendMessage(cmsg); }