diff --git a/app/adminapi/controller/device/DeviceController.php b/app/adminapi/controller/device/DeviceController.php index e188bf5..f5254c3 100644 --- a/app/adminapi/controller/device/DeviceController.php +++ b/app/adminapi/controller/device/DeviceController.php @@ -133,7 +133,7 @@ class DeviceController extends BaseAdminController { $iccid = $this->request->param('iccid', ''); $deviceId = $this->request->param('deviceId', ''); - if (!$deviceId) { + if (!empty($deviceId)) { // 判断设备编码是否被使用 $device = Device::where('code', $deviceId)->find(); if ($device) {