|
@@ -114,6 +114,14 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
PosMachinesTwo pos = new PosMachinesTwoService().Query(SnNo);
|
|
|
PosMachines machines = new PosMachinesService().Query(SnNo);
|
|
|
MerchantInfo merchant = new MerchantInfoService().Query(MerchantId);
|
|
|
+ if (pos.BindingState == 1)
|
|
|
+ {
|
|
|
+ return new AppResultJson() { Status = "-1", Info = "此码已被绑定" };
|
|
|
+ }
|
|
|
+ if (machines.BindingState == 1)
|
|
|
+ {
|
|
|
+ return new AppResultJson() { Status = "-1", Info = "此码已被绑定" };
|
|
|
+ }
|
|
|
int PosId = 0;
|
|
|
if (SnNo == MachineNo || string.IsNullOrEmpty(MachineNo))
|
|
|
{
|