mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 02:29:40 +08:00
docs: 完善文档
This commit is contained in:
@@ -1,12 +1,8 @@
|
|||||||
using System;
|
using System.IO;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Microsoft.Extensions.Options;
|
|
||||||
|
|
||||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_Net5.Controllers
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_Net5.Controllers
|
||||||
{
|
{
|
||||||
@@ -53,6 +49,8 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_Net5.Controllers
|
|||||||
);
|
);
|
||||||
if (!valid)
|
if (!valid)
|
||||||
{
|
{
|
||||||
|
// 注意:需提前注入 CertificateManager、并添加平台证书,才可以使用扩展方法执行验签操作
|
||||||
|
// 有关 CertificateManager 的用法请参阅《开发文档 / 高级技巧 / 如何验证回调通知事件签名?》
|
||||||
return new JsonResult(new { code = "FAIL", message = "验签失败" });
|
return new JsonResult(new { code = "FAIL", message = "验签失败" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user