|
@@ -118,7 +118,6 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
Models.Main1.PosMachines machines = PosMachinesService.Query(" PosSn='" + SnNo + "'");
|
|
Models.Main1.PosMachines machines = PosMachinesService.Query(" PosSn='" + SnNo + "'");
|
|
Models.Main.MerchantInfo merchant = MerchantInfoService.Query(MerchantId);
|
|
Models.Main.MerchantInfo merchant = MerchantInfoService.Query(MerchantId);
|
|
int PosId = 0;
|
|
int PosId = 0;
|
|
- int Kind = 0;
|
|
|
|
if (SnNo == MachineNo || string.IsNullOrEmpty(MachineNo))
|
|
if (SnNo == MachineNo || string.IsNullOrEmpty(MachineNo))
|
|
{
|
|
{
|
|
if (pos.Id == 0)
|
|
if (pos.Id == 0)
|
|
@@ -130,7 +129,6 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
// return new AppResultJson() { Status = "-1", Info = "码牌未授权" };
|
|
// return new AppResultJson() { Status = "-1", Info = "码牌未授权" };
|
|
// }
|
|
// }
|
|
PosId = pos.Id;
|
|
PosId = pos.Id;
|
|
- Kind = 1;
|
|
|
|
}
|
|
}
|
|
else if (SnNo != MachineNo)
|
|
else if (SnNo != MachineNo)
|
|
{
|
|
{
|
|
@@ -143,7 +141,6 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
// return new AppResultJson() { Status = "-1", Info = "音响未授权" };
|
|
// return new AppResultJson() { Status = "-1", Info = "音响未授权" };
|
|
// }
|
|
// }
|
|
PosId = machines.Id;
|
|
PosId = machines.Id;
|
|
- Kind = 2;
|
|
|
|
}
|
|
}
|
|
if (query.Id > 0)
|
|
if (query.Id > 0)
|
|
{
|
|
{
|
|
@@ -162,7 +159,7 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- string DataId = PosId + "_" + Kind;
|
|
|
|
|
|
+ string DataId = PosId + "_2";
|
|
Models.Main1.MachineForQrCode forQrCode = main1db.MachineForQrCode.FirstOrDefault(m => m.DataId == DataId);
|
|
Models.Main1.MachineForQrCode forQrCode = main1db.MachineForQrCode.FirstOrDefault(m => m.DataId == DataId);
|
|
if (forQrCode == null)
|
|
if (forQrCode == null)
|
|
{
|
|
{
|