@@ -37,7 +37,7 @@ namespace HKCardOUT.Helper | |||||
/// <summary> | /// <summary> | ||||
/// 检查卡的状态 | /// 检查卡的状态 | ||||
/// </summary> | /// </summary> | ||||
public static string CheckCardStatus = DataBus.SaasRoute + "api/member-helper/membercardinfo/"; | |||||
public static string CheckCardStatus = DataBus.SaasRoute + "api/member-helper/membercardinfo"; | |||||
/// <summary> | /// <summary> | ||||
/// 同步消费记录 | /// 同步消费记录 | ||||
/// </summary> | /// </summary> | ||||
@@ -24,9 +24,11 @@ namespace HKCardOUT.Logic | |||||
{ | { | ||||
var data = IHttpMultiClient.HttpMulti.AddNode(t => | 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> | /// <summary> | ||||
/// 同步消费记录 | /// 同步消费记录 | ||||
@@ -113,7 +113,7 @@ namespace HKCardOUT.ViewModels | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
var x = await UHF_RS485_Helper.GetInstance().ReadCard(01); | |||||
var x = await UHF_RS485_Helper.GetInstance().ReadCard(item.Address.AsInt()); | |||||
if (x != null) | if (x != null) | ||||
ReadFunc?.Invoke(x); | ReadFunc?.Invoke(x); | ||||
} | } | ||||