public ActionResult EmailVerifySucceed() { if (Request["sysno"] != null && Request["email"] != null) { if (CustomerFacade.CheckCustomerEmail(int.Parse(Request["sysno"].ToString()), HttpUtility.HtmlDecode(Request["email"].ToString()))) { //送积分 ECommerce.Entity.Common.Point point = new ECommerce.Entity.Common.Point(); var user = CustomerFacade.GetCustomerByEmail(Request["email"]); if (user == null) { ViewBag.Message = "没有找到该邮箱的对应用户"; } else { point.CustomerSysNo = user.SysNo; point.AvailablePoint = ConstValue.GetPointByValidateEmail; point.ExpireDate = DateTime.Now.AddYears(1); point.InDate = DateTime.Now; point.InUser = user.CustomerID; point.Memo = EnumHelper.GetDescription(PointType.EmailVerification); point.ObtainType = (int)PointType.EmailVerification; point.Points = ConstValue.GetPointByValidateEmail; point.IsFromSysAccount = 1; point.SysAccount = int.Parse(ConstValue.PointAccountSysNo); CustomerFacade.CustomerEmailValidated(int.Parse(Request["sysno"].ToString()), point); ViewBag.Message = "s"; } } else { ViewBag.Message = "用户邮箱地址没有通过验证!"; } } else { ViewBag.Message = "没有需要验证的用户邮箱地址!"; } return(View()); }