public ActionResult Charge() { string strRecordIdId = Request.QueryString["recordId"]; Guid recordId = Guid.Empty; if (String.IsNullOrEmpty(strRecordIdId) || Guid.TryParse(strRecordIdId, out recordId) == false) { return(RespondResult(false, "参数无效。")); } CouponChargeArgs args = new CouponChargeArgs(); args.Domain = DomainContext.Domain.Id; args.AppId = DomainContext.AppId; args.CouponRecordId = recordId; args.ChargeUser = MemberContext.User.Id; args.ChargeIP = Request.UserHostAddress; NormalResult result = _couponManager.Charge(args); #region 操作日志 if (result.Success) { _operatedLogManager.Create(new OperatedLogEntity() { Domain = DomainContext.Domain.Id, AppId = DomainContext.AppId, User = MemberContext.User.Id, IP = Request.UserHostAddress, Module = EnumModule.Coupon, Description = "核销卡券" }); } #endregion return(RespondDataResult(result)); }