This commit is contained in:
Fu Diwei
2021-07-29 22:20:55 +08:00
11 changed files with 82 additions and 15 deletions

View File

@@ -6,6 +6,10 @@
<summary>SKIT.FlurlHttpClient.Wechat 更新日志</summary>
- Release 1.0.3
- **修复**:显式依赖 `System.Text.Encodings.Web`,修复部分场景下程序集加载问题。
- Release 1.0.2
- **新增**:新增 `IWechatClient.JsonSerializer` 属性。
@@ -26,6 +30,10 @@
<summary>SKIT.FlurlHttpClient.Wechat.Api 更新日志</summary>
- Release 1.2.1
- **修复**:修复生成小程序码接口的模型定义错误。
- Release 1.2.0
- **新增**:新增 `WechatApiClient.Credentials` 属性。

View File

@@ -189,4 +189,4 @@ else
为方便开发者快速掌握本库的使用方法,这里提供一个示例项目以供参考。
请阅读[《示例项目说明》](./Sample.md)
请阅读[《示例项目说明》](./Sample.md)

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net461; netstandard2.0</TargetFrameworks>
<TargetFrameworks>net461; netstandard2.0; net5.0</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
<NullableReferenceTypes>true</NullableReferenceTypes>
@@ -12,7 +12,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat</PackageProjectUrl>
<PackageTags>Flurl.Http Wechat Weixin MicroMessage WechatAds WechatAdvertisting 微信 广告平台 微信广告平台 腾讯广告平台 广点通 微信广点通 腾讯广点通</PackageTags>
<Version>1.0.0-beta.210727</Version>
<Version>1.0.0-beta.210729</Version>
<Description>Flurl.Http client for Wechat Ads Open API. 基于 Flurl.Http 的微信广告平台广点通API 客户端。</Description>
<Authors>Fu Diwei</Authors>
<RepositoryType>git</RepositoryType>

View File

@@ -40,7 +40,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("path")]
[System.Text.Json.Serialization.JsonPropertyName("path")]
public string? Path { get; set; }
public string? PagePath { get; set; }
/// <summary>
/// 获取或设置二维码的宽度(单位:像素)。

View File

@@ -6,13 +6,55 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// <para>表示 [POST] /wxa/getwxacodeunlimit 接口的请求。</para>
/// </summary>
public class WxaGetWxaCodeUnlimitRequest : WxaGetWxaCodeRequest
public class WxaGetWxaCodeUnlimitRequest : WechatApiRequest
{
public static class Types
{
public class Color : WxaGetWxaCodeRequest.Types.Color
{
}
}
/// <summary>
/// 获取或设置扫码场景值。
/// </summary>
[Newtonsoft.Json.JsonProperty("scene")]
[System.Text.Json.Serialization.JsonPropertyName("scene")]
public string Scene { get; set; } = string.Empty;
/// <summary>
/// 获取或设置扫码进入的小程序页面路径。
/// </summary>
[Newtonsoft.Json.JsonProperty("page")]
[System.Text.Json.Serialization.JsonPropertyName("page")]
public string? PagePath { get; set; }
/// <summary>
/// 获取或设置二维码的宽度(单位:像素)。
/// </summary>
[Newtonsoft.Json.JsonProperty("width")]
[System.Text.Json.Serialization.JsonPropertyName("width")]
public int? Width { get; set; }
/// <summary>
/// 获取或设置是否自动配置线条颜色。
/// </summary>
[Newtonsoft.Json.JsonProperty("auto_color")]
[System.Text.Json.Serialization.JsonPropertyName("auto_color")]
public bool? IsAutoColor { get; set; }
/// <summary>
/// 获取或设置线条颜色信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("line_color")]
[System.Text.Json.Serialization.JsonPropertyName("line_color")]
public Types.Color? LineColor { get; set; }
/// <summary>
/// 获取或设置是否需要透明底色。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_hyaline")]
[System.Text.Json.Serialization.JsonPropertyName("is_hyaline")]
public bool? IsHyaline { get; set; }
}
}

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net461; netstandard2.0</TargetFrameworks>
<TargetFrameworks>net461; netstandard2.0; net5.0</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
<NullableReferenceTypes>true</NullableReferenceTypes>
@@ -12,7 +12,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat</PackageProjectUrl>
<PackageTags>Flurl.Http Wechat Weixin MicroMessage MiniProgram MiniGame MiniStore 微信 公众号 服务号 订阅号 小程序 小游戏 小商店 公众平台 开放平台 微信公众号 微信服务号 微信订阅号 微信小程序 微信小游戏 微信小商店 微信公众平台 微信开放平台</PackageTags>
<Version>1.2.0</Version>
<Version>1.2.1</Version>
<Description>Flurl.Http client for Wechat API. 基于 Flurl.Http 的微信 API 客户端支持公众平台订阅号、服务号、小程序、小游戏、小商店、开放平台等平台支持基础服务、模板消息、订阅消息、客服消息、动态消息、菜单管理、素材管理、留言管理、用户管理、账号管理、数据统计、微信门店、微信小店、智能接口、一物一码、微信发票、微信非税缴费、插件管理、附近的小程序、小程序码、小程序搜索、URL Scheme、URL Link、即时配送、物流助手、直播、生物认证、虚拟支付、开放数据、对局匹配、帧同步、内容安全、安全风控、第三方平台等功能。</Description>
<Authors>Fu Diwei</Authors>
<RepositoryType>git</RepositoryType>

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net461; netstandard2.0</TargetFrameworks>
<TargetFrameworks>net461; netstandard2.0; net5.0</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
<NullableReferenceTypes>true</NullableReferenceTypes>
@@ -12,7 +12,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat</PackageProjectUrl>
<PackageTags>Flurl.Http Wechat Weixin MicroMessage Tenpay WechatPay WeixinPay Wxpay 微信 微信支付 微信商户</PackageTags>
<Version>1.4.0</Version>
<Version>1.4.1</Version>
<Description>Flurl.Http client for Wechat Tenpay API. 基于 Flurl.Http 的微信支付 API v3 版客户端,支持直连商户、服务商模式,支持基础支付、代金券、商家券、委托营销、消费卡、支付有礼、微信支付分、微信先享卡、支付即服务、点金计划、智慧商圈、电商收付通、消费者投诉等功能。</Description>
<Authors>Fu Diwei</Authors>
<RepositoryType>git</RepositoryType>

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net461; netstandard2.0</TargetFrameworks>
<TargetFrameworks>net461; netstandard2.0; net5.0</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
<NullableReferenceTypes>true</NullableReferenceTypes>
@@ -12,7 +12,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat</PackageProjectUrl>
<PackageTags>Flurl.Http Wechat Weixin MicroMessage WechatWork WeixinWork Wxwork 微信 企业微信 企业号 微信企业号</PackageTags>
<Version>1.2.0</Version>
<Version>1.2.1</Version>
<Description>Flurl.Http client for Wechat Work Open API. 基于 Flurl.Http 的企业微信 API 客户端支持企业内部开发、第三方应用开发、智慧硬件开发模式支持基础服务、通讯录管理、客户联系、身份验证、应用管理、素材管理、设备管理、消息推送、OA、效率工具、企业互联、电子发票、家校沟通、家校应用、政民沟通等功能。</Description>
<Authors>Fu Diwei</Authors>
<RepositoryType>git</RepositoryType>

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net461; netstandard2.0</TargetFrameworks>
<TargetFrameworks>net461; netstandard2.0; net5.0</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
<NullableReferenceTypes>true</NullableReferenceTypes>
@@ -12,7 +12,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat</PackageProjectUrl>
<PackageTags>Flurl.Http Wechat Weixin MicroMessage 微信</PackageTags>
<Version>1.0.2</Version>
<Version>1.0.3</Version>
<Description>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 等模块)的核心库,具体用法请参阅开发文档。</Description>
<Authors>Fu Diwei</Authors>
<RepositoryType>git</RepositoryType>
@@ -26,6 +26,7 @@
<PackageReference Include="Flurl" Version="3.0.2" />
<PackageReference Include="Flurl.Http" Version="3.2.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="System.Text.Encodings.Web" Version="5.0.1" />
<PackageReference Include="System.Text.Json" Version="5.0.2" />
</ItemGroup>

View File

@@ -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
}

View File

@@ -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
}