Exemple #1
0
    public static void SDKLogin()
    {
#if SDK_HM
        if (GetCurrentLoginState() != 0)
        {
            if (!TcpIPNetwork.Inst.Connected || !LoginSender)
            {
                OnSDKLogin(HMUserID, HMValidateToken);
            }
        }
#endif
        if (LoginLocked)
        {
            Debug.LogWarning("SDKLogin:LoginLocked");
            return;
        }
        Debug.LogWarning("******SDKLogin:LoginNotLocked");
        TcpIPNetwork.Inst.Close(false);
        if (GetCurrentLoginState() != 0)
        {
            SDKLogout(1);
        }
#if SDK_91
        // TODO: API:账号登陆
        if (Inst.mFirstLogin)
        {
            CSDKLogin();
            Inst.mFirstLogin = false;
        }
        else
        {
            CSDKSelAccount();
        }
#elif SDK_PP
        //if(!Bonjour.LoginViewShowing)
        {
            Debug.Log("*****SDKLogin.SDKLogin");
            Bonjour.showLoginView();
            Bonjour.LoginViewShowing = true;
        }
#elif SDK_HM
        Entry.ZHPayStartLogin();
#elif SDK_AB
        Entry.showLoginView();
#elif SDK_TBT
        SDK.TBLogin(0);
#endif
        TcpIPNetwork.Inst.ConnectServer(SharedGlobalParams.LoginHost, SharedGlobalParams.LoginPort);
        LoginLocked = true;
    }
Exemple #2
0
    /// <summary>
    /// 展示帐号登录
    /// </summary>
    public override void ShowLogin()
    {
#if IOSPP && !UNITY_EDITOR
        Bonjour.showLoginView();
#endif
    }