From 0bab48742ededc90d8da7758dccb2b5bf2a77edd Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Sat, 15 Jan 2022 18:02:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E5=8F=B0=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E7=94=A8=E6=88=B7=E8=BA=AB=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Forms/DealerEditLvl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Admin/Forms/DealerEditLvl.php b/app/Admin/Forms/DealerEditLvl.php index fb742b9e..d577d21c 100644 --- a/app/Admin/Forms/DealerEditLvl.php +++ b/app/Admin/Forms/DealerEditLvl.php @@ -37,7 +37,7 @@ class DealerEditLvl extends Form implements LazyRenderable { $id = $this->payload['id'] ?? 0; $dealer = Dealer::findOrFail($id); - if ($dealer?->lvl >= $input['lvl']) { + if ($dealer?->lvl->value >= $input['lvl']) { throw new BizException('请选择大于当前的等级'); } try {