瀏覽代碼

111

Lishi
xxe 2 年之前
父節點
當前提交
a233ac233a
共有 3 個檔案被更改,包括 10 行新增7 行删除
  1. +1
    -1
      HKCardOUT/Bootstrapper.cs
  2. +3
    -1
      HKCardOUT/Logic/RemoteService.cs
  3. +6
    -5
      HKLib/Interfaces/HKLibHelper.cs

+ 1
- 1
HKCardOUT/Bootstrapper.cs 查看文件

@@ -68,7 +68,7 @@ namespace HKCardOUT
DataBus.Count = configer["Count"].AsInt();
HKLib.Configer.SaasRoute = DataBus.SaasRoute;
HKLib.Configer.MqAddress = configer["MQ"];
RemoteService.SyncTime();
RemoteService.GetCardStuatas();
DbContext.InitTable();
RemoteService.PullShopInfo();


+ 3
- 1
HKCardOUT/Logic/RemoteService.cs 查看文件

@@ -37,7 +37,9 @@ namespace HKCardOUT.Logic
});
return data != null ? data.ToString().AsInt() : 0;
}

/// <summary>
/// 同步时间段
/// </summary>
public static void SyncTime()
{
var data = IHttpMultiClient.HttpMulti.AddNode(t =>


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

@@ -30,9 +30,10 @@ namespace HKLib.Interfaces
{
return IHttpMultiClient.HttpMulti.AddNode(t =>
{
t.NodePath = $"{Configer.SaasRoute}/{input}";
t.ReqType = MultiType.GET;
}).Build().RunStringFirst().ToModel<JObject>()["data"].ToString();
t.NodePath = $"{Configer.SaasRoute}/api/one-card/member-tag";
t.ReqType = MultiType.POST;
t.JsonParam = (new { Name = input }).ToJson();
}).Build().RunStringFirst().ToModel<JObject>()["data"]["id"].ToString();
}

/// <summary>
@@ -42,8 +43,8 @@ namespace HKLib.Interfaces
{
return IHttpMultiClient.HttpMulti.AddNode(t =>
{
t.NodePath = $"{Configer.SaasRoute}";
t.ReqType = MultiType.POST;
t.NodePath = $"{Configer.SaasRoute}/api/one-card/member-tag";
t.ReqType = MultiType.PUT;
t.JsonParam = (new { Name = input, Id = Sid }).ToJson();
}).Build().RunStringFirst().ToModel<JObject>()["isSuccess"].ToString().AsBool();
}


Loading…
取消
儲存