private static void SDKLoginCallBack(OnLoginInfo info)
    {
        SDKManager.LoginCallBack -= SDKLoginCallBack;

        if (info.isSuccess)
        {
            AccountMergeInfo2Server msg = AccountMergeInfo2Server.GetMessage(info.loginPlatform, info.accountId, info.pw);
            JsonMessageProcessingController.SendMessage(msg);
        }
    }
    public static AccountMergeInfo2Server GetMessage(LoginPlatform loginType, String typeKey, string pw)
    {
        AccountMergeInfo2Server msg = new AccountMergeInfo2Server();

        msg.loginType = loginType;
        msg.typeKey   = typeKey;
        msg.pw        = pw;

        msg.deviceUniqueIdentifier = SystemInfoManager.deviceUniqueIdentifier;
        msg.platform             = Application.platform;
        msg.deviceSystemLanguage = Application.systemLanguage;

        return(msg);
    }
Exemple #3
0
    private static void SDKLoginCallBack(OnLoginInfo info)
    {
        isWaiting = false;
        SDKManager.LoginCallBack -= SDKLoginCallBack;

        if (info.isSuccess)
        {
            AccountMergeInfo2Server msg = AccountMergeInfo2Server.GetMessage(info.loginPlatform, info.accountId, info.password);
            JsonMessageProcessingController.SendMessage(msg);
        }
        else
        {
            if (OnConfirmMergeExistAccountCallback != null)
            {
                ConfirmMergeExistAccount2Client msg = new ConfirmMergeExistAccount2Client();
                msg.code      = -1;
                msg.loginType = info.loginPlatform;
                OnConfirmMergeExistAccountCallback(msg);
            }
        }
    }