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}]及授权配置");