From c17306ed52702a678c2bbae57384b1d0e3381e13 Mon Sep 17 00:00:00 2001 From: Van Zheng Date: Tue, 26 Apr 2022 10:05:47 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=93=A6=20=E5=BE=AE=E4=BF=A1=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F/wxa/getwxacode=E6=8E=A5=E5=8F=A3=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0env=5Fversion=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Models/Wxa/WxaCode/WxaGetWxaCodeRequest.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 96cbde54..5ef4217d 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaCode/WxaGetWxaCodeRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaCode/WxaGetWxaCodeRequest.cs @@ -39,6 +39,14 @@ [System.Text.Json.Serialization.JsonPropertyName("path")] public string? PagePath { get; set; } + /// + /// 要打开的小程序版本。正式版为 release,体验版为 trial,开发版为 develop + /// 默认release + /// + [Newtonsoft.Json.JsonProperty("env_version")] + [System.Text.Json.Serialization.JsonPropertyName("env_version")] + public string? EnvVersion { get; set; } = "release"; + /// /// 获取或设置二维码的宽度(单位:像素)。 /// @@ -67,4 +75,4 @@ [System.Text.Json.Serialization.JsonPropertyName("is_hyaline")] public bool? IsHyaline { get; set; } } -} +} \ No newline at end of file -- Gitee From 47521b1dce543881ec9dc31670629feebce18875 Mon Sep 17 00:00:00 2001 From: RHQYZ Date: Tue, 26 Apr 2022 04:44:53 +0000 Subject: [PATCH 2/2] update src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaCode/WxaGetWxaCodeRequest.cs. --- .../Models/Wxa/WxaCode/WxaGetWxaCodeRequest.cs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) 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 5ef4217d..d5a9901c 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaCode/WxaGetWxaCodeRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaCode/WxaGetWxaCodeRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /wxa/getwxacode 接口的请求。 @@ -39,14 +39,6 @@ [System.Text.Json.Serialization.JsonPropertyName("path")] public string? PagePath { get; set; } - /// - /// 要打开的小程序版本。正式版为 release,体验版为 trial,开发版为 develop - /// 默认release - /// - [Newtonsoft.Json.JsonProperty("env_version")] - [System.Text.Json.Serialization.JsonPropertyName("env_version")] - public string? EnvVersion { get; set; } = "release"; - /// /// 获取或设置二维码的宽度(单位:像素)。 /// @@ -74,5 +66,12 @@ [Newtonsoft.Json.JsonProperty("is_hyaline")] [System.Text.Json.Serialization.JsonPropertyName("is_hyaline")] public bool? IsHyaline { get; set; } + + /// + /// 获取或设置要打开的小程序版本。 + /// + [Newtonsoft.Json.JsonProperty("env_version")] + [System.Text.Json.Serialization.JsonPropertyName("env_version")] + public string? EnvironmentVersion { get; set; } } } \ No newline at end of file -- Gitee