From 50ac3b60f7365f17e0652d54699628b621bca66d Mon Sep 17 00:00:00 2001 From: "82664165@qq.com" Date: Thu, 1 Jul 2021 11:17:22 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E6=9D=83=E9=99=90=E6=A8=A1=E5=9E=8BIns?= =?UTF-8?q?ert=E5=90=8E=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/permissions/model/Permissions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catch/permissions/model/Permissions.php b/catch/permissions/model/Permissions.php index 08bcd3d..1b9d5bf 100644 --- a/catch/permissions/model/Permissions.php +++ b/catch/permissions/model/Permissions.php @@ -112,7 +112,7 @@ class Permissions extends CatchModel $restful && self::createRestful($model, $level); - $model->updateBy('id', [ + $model->updateBy($model->id, [ 'level' => $level ]); }