Quellcode durchsuchen

刷卡机

Lishi
xxe vor 2 Jahren
Ursprung
Commit
99b8175d52
3 geänderte Dateien mit 7 neuen und 5 gelöschten Zeilen
  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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

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


Laden…
Abbrechen
Speichern