Commit bfe3e56d authored by liudong1993's avatar liudong1993
parents 531961f8 3233a347
...@@ -30,7 +30,7 @@ namespace Mall.Common.Pay.WeChatPat ...@@ -30,7 +30,7 @@ namespace Mall.Common.Pay.WeChatPat
/// <summary> /// <summary>
/// 退款金额 /// 退款金额
/// </summary> /// </summary>
public decimal? RefundFee { get; set; } public int? RefundFee { get; set; }
/// <summary> /// <summary>
/// 过期时间,格式(20141010121314) /// 过期时间,格式(20141010121314)
......
...@@ -326,6 +326,10 @@ namespace Mall.WebApi.App_Code ...@@ -326,6 +326,10 @@ namespace Mall.WebApi.App_Code
var reqXml = packageReq.ParseXml(); var reqXml = packageReq.ParseXml();
LogHelper.Write(reqXml); LogHelper.Write(reqXml);
LogHelper.WriteInfo("退款正式路径" + Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "App_Data/Certs/WeChatApp/" + model.WeChatPayCertificateUrl)); 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() var result = Common.Pay.WeChatPat.HttpHelper.Post(new HttpParam()
{ {
Url = "https://api.mch.weixin.qq.com/secapi/pay/refund", 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