protected override void DecodePackage(NetReader reader) { responsePack = new Response1002Packet() { PassportID = reader.readString() }; }
private void OnRegistCallback(ActionResult actionResult) { Response1002Packet mResponse1002Packet = actionResult.GetValue <Response1002Packet>(); if (mResponse1002Packet != null) { mUIMainModel.SystemInfoReq.PassportID = mResponse1002Packet.PassportID; Net.Instance.Send((int)ActionType.Login, OnLoginCallback, null); //test PlayerPrefsUtil.SetString(PassIdKey, mUIMainModel.SystemInfoReq.PassportID); PlayerPrefsUtil.SetString(TempNickNameKey, mUIMainModel.PlayerInfo.NickName); PlayerPrefsUtil.SetString(OpenIdKey, mUIMainModel.SystemInfoReq.OpenID); } }