diff --git a/HKCardOUT/Bootstrapper.cs b/HKCardOUT/Bootstrapper.cs index b7abcaf..037364b 100644 --- a/HKCardOUT/Bootstrapper.cs +++ b/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(); diff --git a/HKCardOUT/Logic/RemoteService.cs b/HKCardOUT/Logic/RemoteService.cs index 695cba3..9e72c73 100644 --- a/HKCardOUT/Logic/RemoteService.cs +++ b/HKCardOUT/Logic/RemoteService.cs @@ -37,7 +37,9 @@ namespace HKCardOUT.Logic }); return data != null ? data.ToString().AsInt() : 0; } - + /// + /// 同步时间段 + /// public static void SyncTime() { var data = IHttpMultiClient.HttpMulti.AddNode(t => diff --git a/HKLib/Interfaces/HKLibHelper.cs b/HKLib/Interfaces/HKLibHelper.cs index 8696896..c176e4f 100644 --- a/HKLib/Interfaces/HKLibHelper.cs +++ b/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()["data"].ToString(); + t.NodePath = $"{Configer.SaasRoute}/api/one-card/member-tag"; + t.ReqType = MultiType.POST; + t.JsonParam = (new { Name = input }).ToJson(); + }).Build().RunStringFirst().ToModel()["data"]["id"].ToString(); } /// @@ -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()["isSuccess"].ToString().AsBool(); }