|
|
@@ -22,10 +22,11 @@ namespace HKCardOUT.Logic |
|
|
|
/// <param name="input"></param> |
|
|
|
public static int CheckCardStuatas(string CardNo) |
|
|
|
{ |
|
|
|
return 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; |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 同步消费记录 |
|
|
@@ -34,13 +35,14 @@ namespace HKCardOUT.Logic |
|
|
|
/// <param name="Money"></param> |
|
|
|
public static bool SyncSaleLog(string CardNo, string StallId) |
|
|
|
{ |
|
|
|
var GateId = DataBus.StoreInfo.Devices.FirstOrDefault(t => t.Address.AsInt() == StallId.AsInt())?.GateId; |
|
|
|
var data = IHttpMultiClient.HttpMulti.AddNode(t => |
|
|
|
{ |
|
|
|
t.ReqType = MultiType.POST; |
|
|
|
t.JsonParam = (new { GateId=StallId, Type = -1, CardNum = CardNo }).ToJson(); |
|
|
|
t.JsonParam = (new { GateId = GateId, Type = -1, CardNum = CardNo }).ToJson(); |
|
|
|
t.NodePath = ApiRoute.SyncSaleLog; |
|
|
|
}).Build().RunStringFirst(); |
|
|
|
var m= bool.Parse(data.ToModel<JObject>()["data"].ToString()); |
|
|
|
var m = bool.Parse(data.ToModel<JObject>()["data"].ToString()); |
|
|
|
if (m) |
|
|
|
{ |
|
|
|
UHF_RS485_Helper.GetInstance().OpenBeep(StallId.AsInt()); |
|
|
|