From 8ac67630382258b0d5bca418faa706075c7351a1 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Sat, 3 Feb 2024 16:53:11 +0800 Subject: [PATCH] =?UTF-8?q?deviceId=E5=8D=A0=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/adminapi/controller/device/DeviceController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {