deviceId占用

This commit is contained in:
chenbo 2024-02-03 16:53:11 +08:00
parent da0e31cf53
commit 8ac6763038
1 changed files with 1 additions and 1 deletions

View File

@ -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) {