public ReplacePhoneCheckPageViewModel GetReplacePhoneCheckPageViewModel(long userId, int nowNode, int isSubmit)
        {
            ReplacePhoneCheckPageViewModel model = new ReplacePhoneCheckPageViewModel()
            {
                IsLogin = true
            };

            if (Step.stepTable[nowNode * isSubmit, Step.replacePhoneCheck] || nowNode == Step.replacePhoneCheck)
            {
                model.IsVisitLegal = true;
                model.TempNewPhone = TempPhone.GetTempNewPhoneByUserId(userId);
                model.TempOldPhone = TempPhone.GetTempOldPhoneByUserId(userId);
            }
            return(model);
        }
Exemplo n.º 2
0
        public ReplacePhoneCheckPageViewModel GetReplacePhoneCheckPageViewModel()
        {
            string loginUserInfo = HttpContext.Session.GetString("loginUser");
            long   loginUserId   = long.Parse(loginUserInfo.Split(",")[0]);
            int    nowNode       = int.Parse(HttpContext.Session.GetString("nowNode"));
            int    isSubmit      = int.Parse(HttpContext.Session.GetString("isSubmit"));
            ReplacePhoneCheckPageViewModel model = replacePhoneCheckManage.GetReplacePhoneCheckPageViewModel(loginUserId, nowNode, isSubmit);

            if (model.IsVisitLegal)
            {
                HttpContext.Session.SetString("nowNode", Step.replacePhoneCheck.ToString());
                HttpContext.Session.SetString("isSubmit", Step.isSubmitFalse.ToString());
            }
            return(model);
        }