mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 02:29:40 +08:00
Merge branch 'main' of https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Text;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Flurl;
|
using Flurl;
|
||||||
@@ -34,9 +32,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
|||||||
.SetQueryParam("tar_type", request.TarType)
|
.SetQueryParam("tar_type", request.TarType)
|
||||||
.SetQueryParam("algorithm", request.Algorithm);
|
.SetQueryParam("algorithm", request.Algorithm);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(request.TarType))
|
|
||||||
flurlReq.SetQueryParam("tar_type", request.TarType);
|
|
||||||
|
|
||||||
return await client.SendRequestWithJsonAsync<Models.GetPayScoreMerchantBillResponse>(flurlReq, cancellationToken: cancellationToken);
|
return await client.SendRequestWithJsonAsync<Models.GetPayScoreMerchantBillResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -71,13 +71,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
[System.Text.Json.Serialization.JsonIgnore]
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
public string StockId { get; set; } = string.Empty;
|
public string StockId { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取或设置批次名称。
|
|
||||||
/// </summary>
|
|
||||||
[Newtonsoft.Json.JsonProperty("stock_name")]
|
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("stock_name")]
|
|
||||||
public string? StockName { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置商户请求单号。
|
/// 获取或设置商户请求单号。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@@ -10,14 +10,11 @@
|
|||||||
"hall_id": "233455656",
|
"hall_id": "233455656",
|
||||||
"code_display_mode": "BARCODE"
|
"code_display_mode": "BARCODE"
|
||||||
},
|
},
|
||||||
"stock_name": "8月1日活动券",
|
|
||||||
"comment": "活动使用",
|
"comment": "活动使用",
|
||||||
"goods_name": "xxx商品使用",
|
"goods_name": "xxx商品使用",
|
||||||
"out_request_no": "6122352020010133287985742",
|
"out_request_no": "6122352020010133287985742",
|
||||||
"display_pattern_info": {
|
"display_pattern_info": {
|
||||||
"description": "xxx门店可用",
|
"description": "xxx门店可用",
|
||||||
"merchant_logo_url": "https://xxx",
|
|
||||||
"merchant_name": "微信支付",
|
|
||||||
"background_color": "xxxxx",
|
"background_color": "xxxxx",
|
||||||
"coupon_image_url": "图片cdn地址"
|
"coupon_image_url": "图片cdn地址"
|
||||||
},
|
},
|
||||||
@@ -27,7 +24,6 @@
|
|||||||
"mini_programs_path": "/path/index/index"
|
"mini_programs_path": "/path/index/index"
|
||||||
},
|
},
|
||||||
"stock_send_rule": {
|
"stock_send_rule": {
|
||||||
"natural_person_limit": false,
|
|
||||||
"prevent_api_abuse": false
|
"prevent_api_abuse": false
|
||||||
},
|
},
|
||||||
"notify_config": {
|
"notify_config": {
|
||||||
|
Reference in New Issue
Block a user