| | |
| | | private void OnSDKAccountLoginOk(ynmbxxjUtil.FP_LoginOk _result)
|
| | | {
|
| | |
|
| | | Debug.Log("OnSDKAccountLoginOk 111111111111111");
|
| | |
|
| | | sdkLogined = true;
|
| | | sdkLoginResult = _result;
|
| | | Debug.Log("OnSDKAccountLoginOk 222222222");
|
| | | if (!DebugUtility.Instance.isWhiteListAccount)
|
| | | {
|
| | | DebugUtility.Instance.RequestWhiteListAuthority(sdkLoginResult.account);
|
| | | }
|
| | | Debug.Log("OnSDKAccountLoginOk 333333333");
|
| | | ServerListCenter.Instance.RequestServerListPlayer(sdkLoginResult.account);
|
| | | ynmbxxjUtil.Instance.MakeKeyAndVisible();
|
| | | OperationLogCollect.Instance.RecordLauchEvent(5);
|
| | |
|
| | | Debug.LogFormat("SDK login success, account:{0} ; token:{1} ; phone:{2} ; qkUserName:{3}",
|
| | | sdkLoginResult.account, sdkLoginResult.token, sdkLoginResult.phone, sdkLoginResult.qkUserName);
|
| | | GameNotice.OpenGameNotice();
|
| | | }
|
| | |
|
| | |
| | |
|
| | | public void AccessLogin(H0101_tagServerPrepared _serverInfo)
|
| | | {
|
| | | Debug.LogFormat("AccessLogin: Version:{0}", _serverInfo.Version);
|
| | | GameNetSystem.Instance.SendInfo(Get0101SendPackage(_serverInfo)); // 登录
|
| | | }
|
| | |
|
| | | public C0101_tagCPlayerLogin Get0101SendPackage(H0101_tagServerPrepared _serverInfo)
|
| | | {
|
| | | var send = new C0101_tagCPlayerLogin(); |
| | | Debug.LogFormat("C0101_tagCPlayerLogin"); |
| | | Debug.LogFormat("Get0101SendPackage: type:{0}", VersionConfig.Get().versionAuthority); |
| | | switch (VersionConfig.Get().versionAuthority)
|
| | | {
|
| | | case VersionAuthority.InterTest:
|
| | |
| | | send.Adult = 1;
|
| | | send.ExtraLen = 0;
|
| | | send.Extra = "";
|
| | | Debug.Log("InterTest=====> extra: " + send.Extra);
|
| | | break;
|
| | | case VersionAuthority.Release:
|
| | | Debug.LogFormat("C0101_tagCPlayerLogin 1111111111111");
|
| | | send.Extra = VersionConfig.Get().SpID + "|" + ynmbxxjUtil.Instance.Device.uniqueID;
|
| | | send.ExtraLen = (ushort)send.Extra.Length;
|
| | |
|
| | | Debug.LogFormat("C0101_tagCPlayerLogin 2222222222222");
|
| | | if (ynmbxxjUtil.Instance.ChannelPlatform == ynmbxxjUtil.E_ChannelPlatform.Free)
|
| | | {
|
| | | send.IDType = 1;
|
| | |
| | | ynmbxxjUtil.Instance.ChannelPlatform == ynmbxxjUtil.E_ChannelPlatform.en
|
| | | )
|
| | | {
|
| | | Debug.LogFormat("C0101_tagCPlayerLogin 333333333333333");
|
| | | send.IDType = (byte)ynmbxxjUtil.Instance.ChannelPlatform;
|
| | | send.Extra += ("|" + sdkLoginResult.token + "|" + sdkLoginResult.qkUserName);
|
| | | send.ExtraLen = (ushort)send.Extra.Length;
|
| | | Debug.LogFormat("C0101_tagCPlayerLogin 444444444444444444");
|
| | | }
|
| | | string deviceInfo = "ios";
|
| | | try
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | Debug.LogError("C0101_tagCPlayerLogin Exception: " + ex.Message);
|
| | | Debug.Log("C0101_tagCPlayerLogin Exception: " + ex.Message);
|
| | | }
|
| | | send.AccID = sdkLoginResult.account;
|
| | |
|
| | | var versionStr = StringUtility.Contact(VersionConfig.Get().version, "_", VersionConfig.Get().buildIndex, "_", deviceInfo);
|
| | | Debug.LogFormat("C0101_tagCPlayerLogin 5555555555555555");
|
| | |
|
| | | send.Extra += ("|" + versionStr.Substring(0, Math.Min(24, versionStr.Length)));
|
| | | Debug.Log("Release=====> extra: " + send.Extra);
|
| | | Debug.Log("=====> extra: " + send.Extra);
|
| | | send.ExtraLen = (ushort)send.Extra.Length;
|
| | | send.MAC = DeviceUtility.GetMac();
|
| | | send.Version = _serverInfo.Version;
|
| | |
| | | }
|
| | | break;
|
| | | }
|
| | | Debug.LogFormat("C0101_tagCPlayerLogin: IDType:{0}, AccID:{1}, Extra:{2}", send.IDType, send.AccID, send.Extra);
|
| | |
|
| | | return send;
|
| | | }
|