mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-19 18:22:24 +08:00
feat(tenpayv2): 支持新版沙箱(即仿真测试系统)域名
This commit is contained in:
@@ -175,7 +175,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
string json = JsonSerializer.Serialize(data);
|
||||
string xml = Utilities.XmlUtility.ConvertFromJson(json);
|
||||
|
||||
using HttpContent httpContent = new StringContent(xml, Encoding.UTF8, "text/xml");
|
||||
using HttpContent httpContent = new StringContent(xml, Encoding.UTF8, "application/xml");
|
||||
using IFlurlResponse flurlResponse = await SendRequestAsync(flurlRequest, httpContent: httpContent, cancellationToken);
|
||||
return await WrapResponseWithXmlAsync<T>(flurlResponse, cancellationToken);
|
||||
}
|
||||
|
@@ -1,4 +1,6 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
{
|
||||
/// <summary>
|
||||
/// 微信支付 API 接口域名。
|
||||
@@ -18,6 +20,7 @@
|
||||
/// <summary>
|
||||
/// 沙箱域名。
|
||||
/// </summary>
|
||||
public const string SANDBOX = "https://api.mch.weixin.qq.com/sandboxnew";
|
||||
[Obsolete("")]
|
||||
public const string SANDBOX = "https://api.mch.weixin.qq.com/xdc/apiv2sandbox";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user