基地经纬度
This commit is contained in:
parent
44b5724374
commit
0fb2555d4f
|
@ -134,7 +134,7 @@ class DeviceController extends BaseAdminController
|
||||||
$iccid = $this->request->param('iccid', '');
|
$iccid = $this->request->param('iccid', '');
|
||||||
$deviceId = $this->request->param('deviceId', '');
|
$deviceId = $this->request->param('deviceId', '');
|
||||||
// 判断设备编码是否被使用
|
// 判断设备编码是否被使用
|
||||||
$device = Device::where('sn', $deviceId)->find();
|
$device = Device::where('code', $deviceId)->find();
|
||||||
if ($device) {
|
if ($device) {
|
||||||
return $this->fail('设备编码已被使用');
|
return $this->fail('设备编码已被使用');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue