/// <summary> /// 点击勾选用户协议 /// </summary> public void BtnChioceXieyi(Toggle tog) { GameData gd = GameData.Instance; WXLoginPanelData wxlpd = gd.WXLoginPanelData; if (tog.isOn) { wxlpd.isAgreUserRule = true; } else { wxlpd.isAgreUserRule = false; } }
/// <summary> /// 游客登陆按钮 /// </summary> public void BtnGusetLogin() { WXLoginPanelData wlpd = GameData.Instance.WXLoginPanelData; if (!wlpd.isAgreUserRule) { UIMgr.GetInstance().GetUIMessageView().Show(TextConstant.DISAGREEUSERDEAL); return; } if (wlpd.isClickLogin) { return; } SystemMgr.Instance.AudioSystem.PlayAuto(AudioSystem.AudioType.VIEW_CLOSE); NetMsg.ClientAuthenReq msg = new NetMsg.ClientAuthenReq(); msg.wVer = LobbyContants.SeverVersion; Debug.LogWarning("LobbyContants.SeverVersion:" + LobbyContants.SeverVersion + ",msg.wVer:" + msg.wVer); msg.iAuthenType = 4; MahjongCommonMethod.iAutnehType = 4; msg.szDui = SystemInfo.deviceUniqueIdentifier; //msg.szDui = "c7wwfhfjb7dfgfhjd734sgdf34il8edej"; msg.szIp = MahjongCommonMethod.PlayerIp; // SDKManager.Instance.GetIP(() => { }); // Debug.LogWarning("3设备IP:" + msg.szIp); if (MahjongCommonMethod.Instance.isMoNiQi) { msg.fLongitude = 0; msg.fLatitude = 0; msg.szAddress = " "; } else { msg.fLatitude = MahjongCommonMethod.Instance.fLatitude; msg.fLongitude = MahjongCommonMethod.Instance.fLongitude; msg.szAddress = MahjongCommonMethod.Instance.sPlayerAddress; } //Debug.LogError("经纬度:" + msg.fLatitude + "," + msg.fLongitude); msg.iRegistSource = LobbyContants.iChannelVersion; msg.szRegistMac = MahjongCommonMethod.Instance.MacId; msg.szRegistImei = "NOIMEI"; msg.REGISTRATION_ID = SDKManager.Instance.GetRegistID(); NetworkMgr.Instance.LobbyServer.SendAuthenReq(msg); wlpd.isClickLogin = true; }
/// <summary> /// 微信登录按钮 /// </summary> public void BtnWXLogin() { GameData gd = GameData.Instance; WXLoginPanelData wxlpd = gd.WXLoginPanelData; if (!wxlpd.isAgreUserRule) { UIMgr.GetInstance().GetUIMessageView().Show("请确认并同意用户协议"); return; } if (!wxlpd.isBtnOk) { SystemMgr.Instance.AudioSystem.PlayAuto(AudioSystem.AudioType.VIEW_CLOSE); Messenger_anhui.Broadcast(MESSAGE_WXLOGINAUTHBTN); SDKManager.Instance.gameObject.GetComponent <CameControler>().PostMsg("loading"); StartCoroutine(OpenLoginButton()); wxlpd.isBtnOk = true; } MahjongCommonMethod.Instance.HasClicked((int)MahjongCommonMethod.StateType.WXLogin); }