xxe 2 anni fa
parent
commit
a233ac233a
3 ha cambiato i file con 10 aggiunte e 7 eliminazioni
  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 Vedi File

@@ -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 Vedi File

@@ -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 Vedi File

@@ -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();
}


Caricamento…
Annulla
Salva