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;