Exemplo n.º 1
0
        public ActionResult ChangeValidation(string Code)
        {
            ChangeAccountVM model = new ChangeAccountVM();

            model.OpenID           = this.GetOpenId(Code);
            model.OldAccountNumber = AccountBL.GetAccountName(model.OpenID);
            return(View(model));
        }
Exemplo n.º 2
0
        public ActionResult ChangeValidation(ChangeAccountVM model)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    ResultM result = AccountBL.SaveChangeAccount(model.TemData, model.OldAccountNumber, model.OldPassword);

                    if (result.IsSuccess)
                    {
                        EG.WeChat.Service.WeiXin.WeixinMessageSender.SendText(model.OpenID, String.Format("戶口修改 成功!\r\n新的關聯的交易帳號為:{0}。\r\n{1}", model.AccountNumber, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")));
                    }
                    return(Json(result));
                }
                catch (Exception ex)
                {
                    return(Json(new { IsSuccess = false, Message = ex.Message }));
                }
            }
            return(View(model));
        }
Exemplo n.º 3
0
 public ActionResult CheckChangeAccountVM(ChangeAccountVM model)
 {
     return(Json(new { IsSuccess = ModelState.IsValid }));
 }