ToolNET.WeChat.SDK
6.1.17
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ToolNET.WeChat.SDK --version 6.1.17
NuGet\Install-Package ToolNET.WeChat.SDK -Version 6.1.17
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ToolNET.WeChat.SDK" Version="6.1.17" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ToolNET.WeChat.SDK" Version="6.1.17" />
<PackageReference Include="ToolNET.WeChat.SDK" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ToolNET.WeChat.SDK --version 6.1.17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ToolNET.WeChat.SDK, 6.1.17"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ToolNET.WeChat.SDK@6.1.17
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ToolNET.WeChat.SDK&version=6.1.17
#tool nuget:?package=ToolNET.WeChat.SDK&version=6.1.17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
1.配置文件格式:
{
"WeChatOptions": {
"MiniProgramOptions": {
"AppId": "wx7d5656569db4cf27",
"AppSecret": "cd433f878787da7000ef9697313ef",
"Code2SessionUrl": "https://api.weixin.qq.com/sns/jscode2session",
"GetAccessTokenUrl": "https://api.weixin.qq.com/cgi-bin/token",
"GetUnlimitedQRCodeUrl": "https://api.weixin.qq.com/wxa/getwxacodeunlimit",
"WechatApiUrl": "https://api.weixin.qq.com"
},
"PayOptions": {
"MchId": "1676786566",
"V3Secret": "y78768slww876866786ffYTL",
"CertificateSerialNumber": "38F163C867864645B278975D7136FE156",
"PlatCertificateSerialNumber": "611D5FEC525F065079DEDC4B806F660A84245732",
"PayTransactionNotifyUrl": "https://platform.xqiuzw.cn/payment-api/Notify/WeChatPay",
"RefundDomesticNotifyUrl": "https://platform.xqiuzw.cn/payment-api/Notify/WeChatRefund",
"TransferBatchNotifyUrl": "https://platform.xqiuzw.cn/payment-api/Notify/WeChatTransfer",
"AppId": "wx05234534534cd8"
},
"OfficialAccountOptions": {
"AppId": "wx05234534534cd8",
"AppSecret": "380cb4e79utyuty036002740",
"AccessTokenUrl": "https://api.weixin.qq.com/sns/oauth2/access_token",
"RefreshTokenUrl": "https://api.weixin.qq.com/sns/oauth2/refresh_token",
"UserInfoUrl": "https://api.weixin.qq.com/sns/userinfo",
"WechatApiUrl": "https://api.weixin.qq.com"
},
"MobileAppOptions": {
"AppId": "wx0121499a204c4cd8",
"AppSecret": "380cb4e79da802756752342302740",
"AccessTokenUrl": "https://api.weixin.qq.com/sns/oauth2/access_token",
"RefreshTokenUrl": "https://api.weixin.qq.com/sns/oauth2/refresh_token",
"UserInfoUrl": "https://api.weixin.qq.com/sns/userinfo",
"AuthUrl": "https://api.weixin.qq.com/sns/auth"
},
"QQMiniProgramOptions": {
"AppId": "15345245022",
"AppSecret": "IDlm876867gdgdxea65Z",
"Code2SessionUrl": "https://api.q.qq.com/sns/jscode2session",
"GetAccessTokenUrl": "https://api.q.qq.com/api/getToken"
}
}
}
2.配置文件
配置中心或本地配置文件,必须按以上配置格式进行
3.服务注入
services.AddWeChatService(); //单例注入
4.服务使用
MiniProgramService
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.Extensions.Hosting (>= 8.0.0)
- SKIT.FlurlHttpClient.Wechat.TenpayV3 (>= 3.7.0)
- ToolNET.Http.SDK (>= 6.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 6.1.18 | 177 | 9/1/2025 |
| 6.1.17 | 224 | 8/26/2025 |
| 6.1.12 | 427 | 1/8/2025 |
| 6.1.11 | 135 | 12/27/2024 |
| 6.1.10 | 220 | 11/29/2024 |
| 6.1.8 | 225 | 11/2/2024 |
| 6.1.7 | 135 | 11/1/2024 |
| 6.1.6 | 138 | 11/1/2024 |
| 6.1.5 | 183 | 10/24/2024 |
| 6.1.4 | 139 | 10/23/2024 |
| 6.1.3 | 137 | 10/23/2024 |
| 6.1.2 | 212 | 10/16/2024 |
| 6.1.1 | 130 | 10/15/2024 |
| 6.1.0 | 157 | 9/25/2024 |
| 6.0.9 | 287 | 8/17/2024 |
| 6.0.8 | 162 | 8/17/2024 |
| 6.0.7 | 209 | 8/11/2024 |
| 6.0.6 | 183 | 7/12/2024 |
| 6.0.5 | 135 | 7/12/2024 |
| 6.0.4 | 138 | 7/11/2024 |
| 6.0.3 | 162 | 7/11/2024 |
| 6.0.2 | 134 | 7/10/2024 |
| 6.0.1 | 137 | 7/9/2024 |
| 6.0.0 | 162 | 6/20/2024 |