Browse Source

测试BUG

Lishi
xxe 2 years ago
parent
commit
4a41f89f80
2 changed files with 9 additions and 9 deletions
  1. +1
    -1
      HKCardManager/options.json
  2. +8
    -8
      HKLib/Interfaces/HKLibHelper.cs

+ 1
- 1
HKCardManager/options.json View File

@@ -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",


+ 8
- 8
HKLib/Interfaces/HKLibHelper.cs View File

@@ -83,13 +83,13 @@ namespace HKLib.Interfaces
/// <returns></returns>
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<JObject>()["data"]["isSuccess"].ToString().AsBool();
return res;
}
@@ -101,7 +101,7 @@ namespace HKLib.Interfaces
/// <returns></returns>
public static List<OrgDto> 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;


Loading…
Cancel
Save