/// <summary> /// 保存支付结果请求 /// </summary> /// <param name="data">业务数据报文</param> /// <param name="payType">支付方式</param> /// <returns></returns> public virtual PayResultInfo SaveRequest(string data, AppEnum.PayType payType) { var resultInfo = new PayResultInfo() { PayType = (int)payType, RequestData = data, ExecuteResult = (int)ResultStatus.None, NotifyStatus = (int)AppEnum.NotifyStatus.Original, CreateTime = DateTime.Now, }; resultInfo.SysNo = PayResultDAL.Insert(resultInfo); return(resultInfo); }
/// <summary> /// 保存支付结果异步回执记录 /// </summary> /// <param name="data"></param> /// <param name="payType"></param> /// <returns></returns> public static PayResultInfo SavePayResult(string data, AppEnum.PayType payType) { var payResult = new PayResultInfo() { PayType = (int)payType, RequestData = data, ExecuteResult = (int)ResultStatus.None, NotifyStatus = (int)AppEnum.GlobalStatus.Invalid, CreateTime = DateTime.Now, }; payResult.SysNo = PayResultDAL.Insert(payResult); return(payResult); }