修改后台调整用户身份
parent
47458b27a4
commit
0bab48742e
|
|
@ -37,7 +37,7 @@ class DealerEditLvl extends Form implements LazyRenderable
|
||||||
{
|
{
|
||||||
$id = $this->payload['id'] ?? 0;
|
$id = $this->payload['id'] ?? 0;
|
||||||
$dealer = Dealer::findOrFail($id);
|
$dealer = Dealer::findOrFail($id);
|
||||||
if ($dealer?->lvl >= $input['lvl']) {
|
if ($dealer?->lvl->value >= $input['lvl']) {
|
||||||
throw new BizException('请选择大于当前的等级');
|
throw new BizException('请选择大于当前的等级');
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue