Ejemplo n.º 1
0
 static public int IOSPay_RetryLostOrder_s(IntPtr l)
 {
     try {
         ShopData.IOSPay_RetryLostOrder();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 2
0
    private void OnLginReply(object proto)
    {
//        LogSys.LogWarning("----->   lign ----- success ..."+proto);
        UtilTools.HideWaitWin(WaitFlag.LoginFirst);
        UtilTools.HideWaitFlag();
        if (proto == null)
        {
            return;
        }

        UtilTools.OnUmSdkInit(sdk.SDKManager.AppKey, sdk.SDKManager.Q_ID.ToString());
        var msg = proto as sc_login_reply;

        if (msg.result == 1)
        {
            SaveAllUserName(_playerLoginName);
            UIManager.DestroyWin(UIName.REGISTER_BINDING_WIN);
            UIManager.DestroyWin(UIName.LOGIN_INPUT_WIN);
//            GameDataMgr.LOGIN_DATA.IsLoginGameServer = true;
            UIManager.DestroyWin(UIName.LOADING_WIN);
            ClientNetwork.Instance.StartHeatBeast();
            if (GameDataMgr.LOGIN_DATA.IsRegister())
            {
                string loginContent = PlayerPrefs.GetString("accountServerLoginContent", "");
                if (string.IsNullOrEmpty(loginContent))
                {
                    loginContent = GameDataMgr.LOGIN_DATA.lastLoginAccount;
                }
                UtilTools.RegisterCount(loginContent);
            }
            var root = GameObject.Find("UIRoot");
            if (root != null)
            {
                var loadingWin = root.transform.Find("LoadingWin").gameObject;
                if (loadingWin != null)
                {
                    loadingWin.SetActive(true);
                }
            }
            ShopData.IOSPay_RetryLostOrder();
        }
        else
        {
            UtilTools.ShowMessage(msg.reason);
        }
    }