Commit 3233a347 authored by 吴春's avatar 吴春

判断证书

parent d42f30bb
......@@ -30,7 +30,7 @@ namespace Mall.Common.Pay.WeChatPat
/// <summary>
/// 退款金额
/// </summary>
public decimal? RefundFee { get; set; }
public int? RefundFee { get; set; }
/// <summary>
/// 过期时间,格式(20141010121314)
......
......@@ -325,6 +325,10 @@ namespace Mall.WebApi.App_Code
packageReq.SetParameter("sign", packageReq.CreateMd5Sign(_accessor, model.WeChatApiSecret));
var reqXml = packageReq.ParseXml();
LogHelper.WriteInfo("退款正式路径" + Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "App_Data/Certs/WeChatApp/" + model.WeChatPayCertificateUrl));
if (!System.IO.File.Exists(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "App_Data/Certs/WeChatApp/" + model.WeChatPayCertificateUrl)))
{
return new BaseResult() { IsSuccess = false, Message = "证书不存在" };
}
var result = Common.Pay.WeChatPat.HttpHelper.Post(new HttpParam()
{
Url = "https://api.mch.weixin.qq.com/secapi/pay/refund",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment