| | |
| | | sdkLogined = true; |
| | | sdkLoginResult = _result; |
| | | |
| | | if (!DebugUtility.Instance.isWhiteListAccount) |
| | | { |
| | | DebugUtility.Instance.RequestWhiteListAuthority(sdkLoginResult.account); |
| | | } |
| | | |
| | | ServerListCenter.Instance.RequestServerListPlayer(sdkLoginResult.account); |
| | | SDKUtils.Instance.MakeKeyAndVisible(); |
| | |
| | | send.ExtraLen = 0; |
| | | send.Extra = ""; |
| | | break; |
| | | case VersionAuthority.Release:
|
| | | {
|
| | | var deviceInfo = DeviceUtility.GetDeviceModel();
|
| | | deviceInfo.Replace(" ", "").Replace("=", "").Replace("%", "").Replace("-", "").Replace("|", "");
|
| | | var versionStr = StringUtility.Contact(VersionConfig.Get().version, "_", VersionConfig.Get().buildIndex, "_", deviceInfo);
|
| | |
|
| | | case VersionAuthority.Release: |
| | | { |
| | | var deviceInfo = DeviceUtility.GetDeviceModel(); |
| | | deviceInfo.Replace(" ", "").Replace("=", "").Replace("%", "").Replace("-", "").Replace("|", ""); |
| | | var versionStr = StringUtility.Contact(VersionConfig.Get().version, "_", VersionConfig.Get().buildIndex, "_", deviceInfo); |
| | | |
| | | send.Extra = StringUtility.Contact(VersionConfig.Get().SpID, "|", |
| | | SDKUtils.Instance.Device.uniqueID, "|", |
| | | sdkLoginResult.token, "|", |
| | | sdkLoginResult.qkUserName, "|", |
| | | versionStr.Substring(0, Math.Min(24, versionStr.Length)));
|
| | |
|
| | |
|
| | | Debug.Log("=====> extra: " + send.Extra);
|
| | | send.ExtraLen = (ushort)send.Extra.Length;
|
| | |
|
| | | versionStr.Substring(0, Math.Min(24, versionStr.Length))); |
| | | |
| | | |
| | | Debug.Log("=====> extra: " + send.Extra); |
| | | send.ExtraLen = (ushort)send.Extra.Length; |
| | | |
| | | send.IDType = (byte)SDKUtils.Instance.ChannelPlatform; |
| | | send.Password = sdkLoginResult.token; |
| | | send.AccID = sdkLoginResult.account; |
| | |
| | | { |
| | | send.Adult = 0; |
| | | } |
| | | break;
|
| | | }
|
| | | break; |
| | | } |
| | | } |
| | | |
| | | return send; |
| | | } |
| | | |
| | | public string GetVersionStr() |
| | | {
|
| | | return StringUtility.Contact(VersionConfig.Get().version, "_", VersionConfig.Get().buildIndex, "_", InitialFunctionConfig.Get("version").Numerical1);
|
| | | { |
| | | return StringUtility.Contact(VersionConfig.Get().version, "_", VersionConfig.Get().buildIndex, "_", InitialFunctionConfig.Get("version").Numerical1); |
| | | } |
| | | } |