From 0fb2555d4f3b723e313f15507e48cd8233e82222 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Sat, 3 Feb 2024 16:49:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E5=9C=B0=E7=BB=8F=E7=BA=AC=E5=BA=A6?= 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 9d1475d..fc30a86 100644 --- a/app/adminapi/controller/device/DeviceController.php +++ b/app/adminapi/controller/device/DeviceController.php @@ -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('设备编码已被使用'); }