瀏覽代碼

测试BUG

Lishi
xxe 2 年之前
父節點
當前提交
4a41f89f80
共有 2 個檔案被更改,包括 9 行新增9 行删除
  1. +1
    -1
      HKCardManager/options.json
  2. +8
    -8
      HKLib/Interfaces/HKLibHelper.cs

+ 1
- 1
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",


+ 8
- 8
HKLib/Interfaces/HKLibHelper.cs 查看文件

@@ -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…
取消
儲存