From 4a41f89f808c76f19e0f6b94b56ef92567638e4c Mon Sep 17 00:00:00 2001 From: xxe Date: Tue, 18 Oct 2022 10:22:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HKCardManager/options.json | 2 +- HKLib/Interfaces/HKLibHelper.cs | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/HKCardManager/options.json b/HKCardManager/options.json index e6a79a5..b70aa1d 100644 --- a/HKCardManager/options.json +++ b/HKCardManager/options.json @@ -1,5 +1,5 @@ { - //服务地址 + //服务地址 "http://192.168.1.43:5000/" "SaasRoute": "https://bpa.black-pa.com:21528/kitchen/", //加盟商Id "TenantId": "78d635f7-8ee4-4be4-b26a-462016196826", diff --git a/HKLib/Interfaces/HKLibHelper.cs b/HKLib/Interfaces/HKLibHelper.cs index 51ec83f..2dd82f0 100644 --- a/HKLib/Interfaces/HKLibHelper.cs +++ b/HKLib/Interfaces/HKLibHelper.cs @@ -83,13 +83,13 @@ namespace HKLib.Interfaces /// public static bool DelOrg(string Id) { - var data = IHttpMultiClient.HttpMulti - .AddHeader(t => t.Headers = Header) - .AddNode(t => - { - t.NodePath = $"{Configer.SaasRoute}api/one-card/member-tag/{Id}"; - t.ReqType = MultiType.DELETE; - }).Build().RunStringFirst(); + var data = IHttpMultiClient.HttpMulti + .AddHeader(t => t.Headers = Header) + .AddNode(t => + { + t.NodePath = $"{Configer.SaasRoute}api/one-card/member-tag/{Id}"; + t.ReqType = MultiType.DELETE; + }).Build().RunStringFirst(); var res = data.ToModel()["data"]["isSuccess"].ToString().AsBool(); return res; } @@ -101,7 +101,7 @@ namespace HKLib.Interfaces /// public static List GetOrg() { - var data = IHttpMultiClient.HttpMulti.AddNode(t => + var data = IHttpMultiClient.HttpMulti.AddHeader(t => t.Headers = Header).AddNode(t => { t.NodePath = $"{Configer.SaasRoute}api/one-card/member-tag-list"; t.ReqType = MultiType.GET;