From 87fa82145bc71dd1a7c8c7d9660ffc5da557cd10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Thu, 19 Aug 2021 11:44:57 +0800 Subject: [PATCH] Update SystemAuth.php --- app/admin/model/SystemAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/model/SystemAuth.php b/app/admin/model/SystemAuth.php index 37c0e7e80..6b1eaed7d 100644 --- a/app/admin/model/SystemAuth.php +++ b/app/admin/model/SystemAuth.php @@ -43,7 +43,7 @@ class SystemAuth extends Model */ public function onAdminDelete(string $ids) { - if (count($aids = str2arr($aids ?? '')) > 0) { + if (count($aids = str2arr($ids ?? '')) > 0) { M('SystemAuthNode')->whereIn('auth', $aids)->delete(); } sysoplog($this->oplogType, "删除{$this->oplogName}[{$ids}]及授权配置");