//account_info private ServerMsgStruct DefaulatAnalyzeAccountInfo(object obj) { ServerMsgStructAccountInfo msgStruct = new ServerMsgStructAccountInfo(); msgStruct.analyzeData(obj); return(msgStruct); }
public void OnMsgAccCheck(int respond, ServerMsgStructAccountInfo accinfo) { //账号验证成功之后,再登陆.如有选区.往这里加. if (respond == 1) { //用token登陆 Debug.Log(accinfo.accname + " " + accinfo.token); IMiniServer.Singleton.account_login(accinfo.accname, accinfo.token); } }
//改密码 public void OnMsgChangePwd(int respond, Dictionary <string, ServerMsgStruct> msgList) { ServerMsgStruct msgStruct; if (msgList.TryGetValue(ServerMessageKeyWords.KEYWORD_ACCOUNTINFO, out msgStruct) == false) { return; } ServerMsgStructAccountInfo msg = (ServerMsgStructAccountInfo)msgStruct; Debug.Log(msg.accname + " .. " + msg.accpwd); //UIEditPassword.GetInstance().OnEditResult(respond,msg); Login.Singleton.OnChangePwd(respond, msg); }
public void OnChangePwd(int respond, ServerMsgStructAccountInfo msg) { NotifyChanged((int)ENPropertyChanged.enChangePWD, respond); }