diff --git a/CHANGELOG.md b/CHANGELOG.md
index e14e39df..16dc3a1c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,10 @@
SKIT.FlurlHttpClient.Wechat 更新日志
+- Release 1.0.3
+
+ - **修复**:显式依赖 `System.Text.Encodings.Web`,修复部分场景下程序集加载问题。
+
- Release 1.0.2
- **新增**:新增 `IWechatClient.JsonSerializer` 属性。
@@ -26,6 +30,10 @@
SKIT.FlurlHttpClient.Wechat.Api 更新日志
+- Release 1.2.1
+
+ - **修复**:修复生成小程序码接口的模型定义错误。
+
- Release 1.2.0
- **新增**:新增 `WechatApiClient.Credentials` 属性。
diff --git a/docs/WechatApi/README.md b/docs/WechatApi/README.md
index ff8a3523..2c86f3ef 100644
--- a/docs/WechatApi/README.md
+++ b/docs/WechatApi/README.md
@@ -189,4 +189,4 @@ else
为方便开发者快速掌握本库的使用方法,这里提供一个示例项目以供参考。
-请阅读[《示例项目说明》](./Sample.md)
+请阅读[《示例项目说明》](./Sample.md)。
diff --git a/src/SKIT.FlurlHttpClient.Wechat.Ads/SKIT.FlurlHttpClient.Wechat.Ads.csproj b/src/SKIT.FlurlHttpClient.Wechat.Ads/SKIT.FlurlHttpClient.Wechat.Ads.csproj
index 6b936a60..1b53b29d 100644
--- a/src/SKIT.FlurlHttpClient.Wechat.Ads/SKIT.FlurlHttpClient.Wechat.Ads.csproj
+++ b/src/SKIT.FlurlHttpClient.Wechat.Ads/SKIT.FlurlHttpClient.Wechat.Ads.csproj
@@ -1,7 +1,7 @@
- net461; netstandard2.0
+ net461; netstandard2.0; net5.0
8.0
enable
true
@@ -12,7 +12,7 @@
MIT
https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat
Flurl.Http Wechat Weixin MicroMessage WechatAds WechatAdvertisting 微信 广告平台 微信广告平台 腾讯广告平台 广点通 微信广点通 腾讯广点通
- 1.0.0-beta.210727
+ 1.0.0-beta.210729
Flurl.Http client for Wechat Ads Open API. 基于 Flurl.Http 的微信广告平台(广点通)API 客户端。
Fu Diwei
git
diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaCode/WxaGetWxaCodeRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaCode/WxaGetWxaCodeRequest.cs
index 5bdf3b89..0ecdd343 100644
--- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaCode/WxaGetWxaCodeRequest.cs
+++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaCode/WxaGetWxaCodeRequest.cs
@@ -40,7 +40,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
///
[Newtonsoft.Json.JsonProperty("path")]
[System.Text.Json.Serialization.JsonPropertyName("path")]
- public string? Path { get; set; }
+ public string? PagePath { get; set; }
///
/// 获取或设置二维码的宽度(单位:像素)。
diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaCode/WxaGetWxaCodeUnlimitRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaCode/WxaGetWxaCodeUnlimitRequest.cs
index c199dfad..5caedd90 100644
--- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaCode/WxaGetWxaCodeUnlimitRequest.cs
+++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaCode/WxaGetWxaCodeUnlimitRequest.cs
@@ -6,13 +6,55 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
///
/// 表示 [POST] /wxa/getwxacodeunlimit 接口的请求。
///
- public class WxaGetWxaCodeUnlimitRequest : WxaGetWxaCodeRequest
+ public class WxaGetWxaCodeUnlimitRequest : WechatApiRequest
{
+ public static class Types
+ {
+ public class Color : WxaGetWxaCodeRequest.Types.Color
+ {
+ }
+ }
+
///
/// 获取或设置扫码场景值。
///
[Newtonsoft.Json.JsonProperty("scene")]
[System.Text.Json.Serialization.JsonPropertyName("scene")]
public string Scene { get; set; } = string.Empty;
+
+ ///
+ /// 获取或设置扫码进入的小程序页面路径。
+ ///
+ [Newtonsoft.Json.JsonProperty("page")]
+ [System.Text.Json.Serialization.JsonPropertyName("page")]
+ public string? PagePath { get; set; }
+
+ ///
+ /// 获取或设置二维码的宽度(单位:像素)。
+ ///
+ [Newtonsoft.Json.JsonProperty("width")]
+ [System.Text.Json.Serialization.JsonPropertyName("width")]
+ public int? Width { get; set; }
+
+ ///
+ /// 获取或设置是否自动配置线条颜色。
+ ///
+ [Newtonsoft.Json.JsonProperty("auto_color")]
+ [System.Text.Json.Serialization.JsonPropertyName("auto_color")]
+ public bool? IsAutoColor { get; set; }
+
+ ///
+ /// 获取或设置线条颜色信息。
+ ///
+ [Newtonsoft.Json.JsonProperty("line_color")]
+ [System.Text.Json.Serialization.JsonPropertyName("line_color")]
+ public Types.Color? LineColor { get; set; }
+
+ ///
+ /// 获取或设置是否需要透明底色。
+ ///
+ [Newtonsoft.Json.JsonProperty("is_hyaline")]
+ [System.Text.Json.Serialization.JsonPropertyName("is_hyaline")]
+ public bool? IsHyaline { get; set; }
}
}
diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/SKIT.FlurlHttpClient.Wechat.Api.csproj b/src/SKIT.FlurlHttpClient.Wechat.Api/SKIT.FlurlHttpClient.Wechat.Api.csproj
index 51cb97ea..1332e540 100644
--- a/src/SKIT.FlurlHttpClient.Wechat.Api/SKIT.FlurlHttpClient.Wechat.Api.csproj
+++ b/src/SKIT.FlurlHttpClient.Wechat.Api/SKIT.FlurlHttpClient.Wechat.Api.csproj
@@ -1,7 +1,7 @@
- net461; netstandard2.0
+ net461; netstandard2.0; net5.0
8.0
enable
true
@@ -12,7 +12,7 @@
MIT
https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat
Flurl.Http Wechat Weixin MicroMessage MiniProgram MiniGame MiniStore 微信 公众号 服务号 订阅号 小程序 小游戏 小商店 公众平台 开放平台 微信公众号 微信服务号 微信订阅号 微信小程序 微信小游戏 微信小商店 微信公众平台 微信开放平台
- 1.2.0
+ 1.2.1
Flurl.Http client for Wechat API. 基于 Flurl.Http 的微信 API 客户端,支持公众平台(订阅号、服务号、小程序、小游戏、小商店)、开放平台等平台,支持基础服务、模板消息、订阅消息、客服消息、动态消息、菜单管理、素材管理、留言管理、用户管理、账号管理、数据统计、微信门店、微信小店、智能接口、一物一码、微信发票、微信非税缴费、插件管理、附近的小程序、小程序码、小程序搜索、URL Scheme、URL Link、即时配送、物流助手、直播、生物认证、虚拟支付、开放数据、对局匹配、帧同步、内容安全、安全风控、第三方平台等功能。
Fu Diwei
git
diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/SKIT.FlurlHttpClient.Wechat.TenpayV3.csproj b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/SKIT.FlurlHttpClient.Wechat.TenpayV3.csproj
index 78c37643..c3497526 100644
--- a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/SKIT.FlurlHttpClient.Wechat.TenpayV3.csproj
+++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/SKIT.FlurlHttpClient.Wechat.TenpayV3.csproj
@@ -1,7 +1,7 @@
- net461; netstandard2.0
+ net461; netstandard2.0; net5.0
8.0
enable
true
@@ -12,7 +12,7 @@
MIT
https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat
Flurl.Http Wechat Weixin MicroMessage Tenpay WechatPay WeixinPay Wxpay 微信 微信支付 微信商户
- 1.4.0
+ 1.4.1
Flurl.Http client for Wechat Tenpay API. 基于 Flurl.Http 的微信支付 API v3 版客户端,支持直连商户、服务商模式,支持基础支付、代金券、商家券、委托营销、消费卡、支付有礼、微信支付分、微信先享卡、支付即服务、点金计划、智慧商圈、电商收付通、消费者投诉等功能。
Fu Diwei
git
diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/SKIT.FlurlHttpClient.Wechat.Work.csproj b/src/SKIT.FlurlHttpClient.Wechat.Work/SKIT.FlurlHttpClient.Wechat.Work.csproj
index 28f5a8b4..6513006a 100644
--- a/src/SKIT.FlurlHttpClient.Wechat.Work/SKIT.FlurlHttpClient.Wechat.Work.csproj
+++ b/src/SKIT.FlurlHttpClient.Wechat.Work/SKIT.FlurlHttpClient.Wechat.Work.csproj
@@ -1,7 +1,7 @@
- net461; netstandard2.0
+ net461; netstandard2.0; net5.0
8.0
enable
true
@@ -12,7 +12,7 @@
MIT
https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat
Flurl.Http Wechat Weixin MicroMessage WechatWork WeixinWork Wxwork 微信 企业微信 企业号 微信企业号
- 1.2.0
+ 1.2.1
Flurl.Http client for Wechat Work Open API. 基于 Flurl.Http 的企业微信 API 客户端,支持企业内部开发、第三方应用开发、智慧硬件开发模式,支持基础服务、通讯录管理、客户联系、身份验证、应用管理、素材管理、设备管理、消息推送、OA、效率工具、企业互联、电子发票、家校沟通、家校应用、政民沟通等功能。
Fu Diwei
git
diff --git a/src/SKIT.FlurlHttpClient.Wechat/SKIT.FlurlHttpClient.Wechat.csproj b/src/SKIT.FlurlHttpClient.Wechat/SKIT.FlurlHttpClient.Wechat.csproj
index 8839a220..1b3a5a1b 100644
--- a/src/SKIT.FlurlHttpClient.Wechat/SKIT.FlurlHttpClient.Wechat.csproj
+++ b/src/SKIT.FlurlHttpClient.Wechat/SKIT.FlurlHttpClient.Wechat.csproj
@@ -1,7 +1,7 @@
- net461; netstandard2.0
+ net461; netstandard2.0; net5.0
8.0
enable
true
@@ -12,7 +12,7 @@
MIT
https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat
Flurl.Http Wechat Weixin MicroMessage 微信
- 1.0.2
+ 1.0.3
The core of a Flurl.Http client for Wechat. SKIT.FlurlClient.Wechat(含 SKIT.FlurlHttpClient.Wechat.Api、SKIT.FlurlHttpClient.Wechat.TenpayV3、SKIT.FlurlHttpClient.Wechat.Work、SKIT.FlurlHttpClient.Wechat.Ads 等模块)的核心库,具体用法请参阅开发文档。
Fu Diwei
git
@@ -26,6 +26,7 @@
+
diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Wxa/WxaCode/WxaGetWxaCodeRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Wxa/WxaCode/WxaGetWxaCodeRequest.json
index 9da90428..81fd81a9 100644
--- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Wxa/WxaCode/WxaGetWxaCodeRequest.json
+++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Wxa/WxaCode/WxaGetWxaCodeRequest.json
@@ -1,4 +1,11 @@
{
"path": "page/index/index",
- "width": 430
+ "width": 430,
+ "auto_color": false,
+ "line_color": {
+ "r": 0,
+ "g": 0,
+ "b": 0
+ },
+ "is_hyaline": false
}
\ No newline at end of file
diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Wxa/WxaCode/WxaGetWxaCodeUnlimitRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Wxa/WxaCode/WxaGetWxaCodeUnlimitRequest.json
index 11c835a4..55a89034 100644
--- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Wxa/WxaCode/WxaGetWxaCodeUnlimitRequest.json
+++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Wxa/WxaCode/WxaGetWxaCodeUnlimitRequest.json
@@ -1,3 +1,12 @@
{
- "scene": "a=1"
+ "scene": "a=1",
+ "page": "page/index/index",
+ "width": 430,
+ "auto_color": false,
+ "line_color": {
+ "r": 0,
+ "g": 0,
+ "b": 0
+ },
+ "is_hyaline": false
}
\ No newline at end of file