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