diff --git a/HKCardOUT/Helper/DataBus.cs b/HKCardOUT/Helper/DataBus.cs
index 5cbf872..1b7811c 100644
--- a/HKCardOUT/Helper/DataBus.cs
+++ b/HKCardOUT/Helper/DataBus.cs
@@ -37,7 +37,7 @@ namespace HKCardOUT.Helper
///
/// 检查卡的状态
///
- public static string CheckCardStatus = DataBus.SaasRoute + "api/member-helper/membercardinfo/";
+ public static string CheckCardStatus = DataBus.SaasRoute + "api/member-helper/membercardinfo";
///
/// 同步消费记录
///
diff --git a/HKCardOUT/Logic/RemoteService.cs b/HKCardOUT/Logic/RemoteService.cs
index d5be8d7..f6a00f5 100644
--- a/HKCardOUT/Logic/RemoteService.cs
+++ b/HKCardOUT/Logic/RemoteService.cs
@@ -24,9 +24,11 @@ namespace HKCardOUT.Logic
{
var data = IHttpMultiClient.HttpMulti.AddNode(t =>
{
- t.NodePath = ApiRoute.CheckCardStatus + CardNo;
- }).Build().RunStringFirst().ToModel()["data"]["cardState"].ToString().AsInt();
- return data;
+ t.NodePath = ApiRoute.CheckCardStatus;
+ t.ReqType = MultiType.POST;
+ t.JsonParam = (new { cardNum = CardNo }).ToJson();
+ }).Build().RunStringFirst().ToModel()["data"]["cardState"];
+ return data != null ? data.ToString().AsInt() : 0;
}
///
/// 同步消费记录
diff --git a/HKCardOUT/ViewModels/RootViewModel.cs b/HKCardOUT/ViewModels/RootViewModel.cs
index 0b33f1e..b66823f 100644
--- a/HKCardOUT/ViewModels/RootViewModel.cs
+++ b/HKCardOUT/ViewModels/RootViewModel.cs
@@ -113,7 +113,7 @@ namespace HKCardOUT.ViewModels
}
else
{
- var x = await UHF_RS485_Helper.GetInstance().ReadCard(01);
+ var x = await UHF_RS485_Helper.GetInstance().ReadCard(item.Address.AsInt());
if (x != null)
ReadFunc?.Invoke(x);
}