Esempio n. 1
0
        /// <summary>
        /// 获取XF系统的回调的订单扣款状态
        /// </summary>
        /// <param name="getXFVerifyActPayment"></param>
        /// <returns></returns>
        public static bool GetXFVerifyActualPayment(GetXFVerifyActPayment getXFVerifyActPayment)
        {
            string outMsg    = string.Empty;
            string outOpenID = string.Empty;

            if (getXFVerifyActPayment.TradeType == "0")
            {
                if (new DB.BLL.MY_Bll(DBEnum.Master).UpdateOrderStatusByXFPaymentToComfirm(ToolHelper.ConventToDecimal(getXFVerifyActPayment.PayMoney, 999), getXFVerifyActPayment.TradeNo, getXFVerifyActPayment.TradeStatus, out outMsg, out outOpenID))
                {
                    //WeChatAPI.SendMsg("付款审核成功", "您有一笔订单流水付款审核已通过,正等待仓库发货", outOpenID);
                    return(true);
                }
                if (!string.IsNullOrEmpty(outMsg))
                {
                    new DB.BLL.MB_Bll(DBEnum.Master).RecordErrInfoNote("XF系统回调的订单和扣款状态", outMsg);
                }
            }
            else if (getXFVerifyActPayment.TradeType == "1")
            {
                if (new DB.BLL.MY_Bll(DBEnum.Master).UpdateReBackPayAccByXFPaymentToComfirm(ToolHelper.ConventToDecimal(getXFVerifyActPayment.PayMoney, 999), getXFVerifyActPayment.TradeNo, getXFVerifyActPayment.TradeStatus, out outMsg, out outOpenID))
                {
                    //WeChatAPI.SendMsg("退款资金到账通知", "您有一笔退款金额已通过原支付方式退还至您的账户,请注意查收", outOpenID);
                    return(true);
                }
                if (!string.IsNullOrEmpty(outMsg))
                {
                    new DB.BLL.MB_Bll(DBEnum.Master).RecordErrInfoNote("XF系统回调的订单和扣款状态", outMsg);
                }
            }

            return(false);
        }
 public bool GetXFVerifyActualPayment(GetXFVerifyActPayment getXFVerifyActPayment)
 {
     if (verifyHelper.CheckPmtSign(ref getXFVerifyActPayment))
     {
         return(MALLServiceHelper.GetXFVerifyActualPayment(getXFVerifyActPayment));
     }
     return(false);
 }