fixed enabled

This commit is contained in:
Edward Yang 2022-06-30 20:26:43 +08:00
parent e85a3f58e3
commit a9e68fe8d1
1 changed files with 5 additions and 0 deletions

View File

@ -106,6 +106,11 @@ class Plugin implements Arrayable, \ArrayAccess
return SettingRepo::getPluginStatus($this->code);
}
public function getEnabled(): bool
{
return $this->enabled;
}
/**
* 获取插件对应的设置字段, 并获取已存储在DB的字段值