瀏覽代碼

刷卡机

Lishi
xxe 2 年之前
父節點
當前提交
99b8175d52
共有 3 個文件被更改,包括 7 次插入5 次删除
  1. +1
    -1
      HKCardOUT/Helper/DataBus.cs
  2. +5
    -3
      HKCardOUT/Logic/RemoteService.cs
  3. +1
    -1
      HKCardOUT/ViewModels/RootViewModel.cs

+ 1
- 1
HKCardOUT/Helper/DataBus.cs 查看文件

@@ -37,7 +37,7 @@ namespace HKCardOUT.Helper
/// <summary>
/// 检查卡的状态
/// </summary>
public static string CheckCardStatus = DataBus.SaasRoute + "api/member-helper/membercardinfo/";
public static string CheckCardStatus = DataBus.SaasRoute + "api/member-helper/membercardinfo";
/// <summary>
/// 同步消费记录
/// </summary>


+ 5
- 3
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<JObject>()["data"]["cardState"].ToString().AsInt();
return data;
t.NodePath = ApiRoute.CheckCardStatus;
t.ReqType = MultiType.POST;
t.JsonParam = (new { cardNum = CardNo }).ToJson();
}).Build().RunStringFirst().ToModel<JObject>()["data"]["cardState"];
return data != null ? data.ToString().AsInt() : 0;
}
/// <summary>
/// 同步消费记录


+ 1
- 1
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);
}


Loading…
取消
儲存