where(['status' => 1])->order('sort desc,id desc')->select()->toArray(); } /** * 删除权限事件. */ public function onAdminDelete(string $ids) { if (count($aids = str2arr($ids)) > 0) { SystemNode::mk()->whereIn('auth', $aids)->delete(); } sysoplog($this->oplogType, lang('删除%s[%s]及授权配置', [lang($this->oplogName), $ids])); } /** * 格式化创建时间. * @param mixed $value */ public function getCreateAtAttr($value): string { return format_datetime($value); } }