Esempio n. 1
0
        /// <summary>
        /// 确定
        /// </summary>
        public override async void Save()
        {
            try
            {
                IUser user          = BridgeFactory.BridgeManager.GetUserManager();
                var   gamesGetGames = await user.ResetPwd(newPwd, oldPwd);

                Msg.Info(gamesGetGames.Message);
                if (gamesGetGames.code.Equals("000"))
                {
                    ClostEvent?.Invoke();
                }
            }
            catch (Exception ex)
            {
                Msg.Error(ex);
            }
        }
Esempio n. 2
0
        public override async void Save()
        {
            try
            {
                ICommon common        = BridgeFactory.BridgeManager.GetCommonManager();
                var     gamesGetGames = await common.UseCoupon(code);

                if (gamesGetGames.code.Equals("000"))
                {
                    var Results = JsonConvert.DeserializeObject <CouponEntity>(gamesGetGames.result.ToString());
                    Loginer.LoginerUser.balance = Results.balance;
                    CommonsCall.UserBalance     = Loginer.LoginerUser.balance;
                    CommonsCall.ShowUser        = Loginer.LoginerUser.UserName + "  余额:" + Loginer.LoginerUser.balance + "鹰币   " + Loginer.LoginerUser.vipInfo;
                }
                Msg.Info(gamesGetGames.Message);
                ClostEvent?.Invoke();
            }
            catch (Exception ex)
            {
                Msg.Error(ex);
            }
        }