mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-04-05 17:37:54 +08:00
test(tenpayv3): 适配新的接口模型
This commit is contained in:
parent
8885be2f80
commit
4de80aa5a5
test
SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/MerchantService/ComplaintsV2
GetMerchantServiceComplaintByComplaintIdResponse.jsonQueryMerchantServiceComplaintNegotiationHistoriesResponse.jsonQueryMerchantServiceComplaintsResponse.json
SKIT.FlurlHttpClient.Wechat.TestTools
@ -6,6 +6,14 @@
|
||||
"complaint_state": "PENDING",
|
||||
"payer_phone": "sGdNeTHMQGlxCWiUyHu6XNO9GCYln2Luv4HhwJzZBfcL12sB",
|
||||
"payer_openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
|
||||
"complaint_media_list": [
|
||||
{
|
||||
"media_type": "USER_COMPLAINT_IMAGE",
|
||||
"media_url": [
|
||||
"https://api.mch.weixin.qq.com/v3/merchant-service/images/xxxxx"
|
||||
]
|
||||
}
|
||||
],
|
||||
"complaint_order_info": [
|
||||
{
|
||||
"transaction_id": "4200000404201909069117582536",
|
||||
@ -15,5 +23,6 @@
|
||||
],
|
||||
"complaint_full_refunded": true,
|
||||
"incoming_user_response": true,
|
||||
"problem_description": "不满意商家服务",
|
||||
"user_complaint_times": 1
|
||||
}
|
@ -1,6 +1,14 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"complaint_media_list": [
|
||||
{
|
||||
"media_type": "USER_COMPLAINT_IMAGE",
|
||||
"media_url": [
|
||||
"https://api.mch.weixin.qq.com/v3/merchant-service/images/xxxxx"
|
||||
]
|
||||
}
|
||||
],
|
||||
"log_id": "300285320210322170000071077",
|
||||
"operator": "投诉人",
|
||||
"operate_time": "2015-05-20T13:29:35.120+08:00",
|
||||
|
@ -6,7 +6,14 @@
|
||||
"complaint_detail": "反馈一个重复扣费的问题",
|
||||
"complaint_state": "PENDING",
|
||||
"payer_phone": "Qe41VhP/sGdNeTHMQGlxCWiUyHu6XNO9GCYln2Luv4HhwJzZBfcL12sB+PgZcS5NhePBog30NgJ1xRaK+gbGDKwpg==",
|
||||
"payer_openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
|
||||
"complaint_media_list": [
|
||||
{
|
||||
"media_type": "USER_COMPLAINT_IMAGE",
|
||||
"media_url": [
|
||||
"https://api.mch.weixin.qq.com/v3/merchant-service/images/xxxxx"
|
||||
]
|
||||
}
|
||||
],
|
||||
"complaint_order_info": [
|
||||
{
|
||||
"transaction_id": "4200000404201909069117582536",
|
||||
@ -21,6 +28,7 @@
|
||||
],
|
||||
"complaint_full_refunded": true,
|
||||
"incoming_user_response": true,
|
||||
"problem_description": "不满意商家服务",
|
||||
"user_complaint_times": 1
|
||||
}
|
||||
],
|
||||
|
@ -373,7 +373,7 @@ namespace SKIT.FlurlHttpClient.Wechat
|
||||
string actualMethod = sourceCode.Contains(".CreateRequest(request, new HttpMethod(\"") ?
|
||||
sourceCode.Split(".CreateRequest(request, new HttpMethod(\"")[1].Split("\"")[0] :
|
||||
sourceCode.Contains(".CreateRequest(request, HttpMethod.") ?
|
||||
sourceCode.Split(".CreateRequest(request, HttpMethod.")[1].Split(",")[0] :
|
||||
sourceCode.Split(".CreateRequest(request, HttpMethod.")[1].Split(",")[0].Split(")")[0] :
|
||||
string.Empty;
|
||||
if (!string.Equals(expectedMethod, actualMethod, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
@ -490,7 +490,7 @@ namespace SKIT.FlurlHttpClient.Wechat
|
||||
// 如果是 GET 请求,检查是否包含 JSON 序列化字段
|
||||
if ("GET".Equals(expectedRequestMethod, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
if (!reqCodeSourceCode.Contains("/* @codestyle-disable") || !reqCodeSourceCode.Contains("no-jsonable-property-in-get"))
|
||||
if (!(reqCodeSourceCode.Contains("/* @codestyle-disable") && reqCodeSourceCode.Contains("no-jsonable-property-in-get")))
|
||||
{
|
||||
if (new Regex("\\[Newtonsoft.Json.JsonProperty\\(\"[a-zA-Z0-9_]*\"\\)\\]").IsMatch(reqCodeSourceCode))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user