installed
This commit is contained in:
parent
f5576daa93
commit
64422cec3f
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
namespace Beike\Admin\Http\Controllers;
|
||||
|
||||
use Beike\Models\Customer;
|
||||
use Exception;
|
||||
use Beike\Plugin\Manager;
|
||||
use Illuminate\Http\Request;
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ class PluginResource extends JsonResource
|
|||
'icon' => $this->icon,
|
||||
'author' => $this->author,
|
||||
'status' => $this->getStatus(),
|
||||
'installed' => $this->getInstalled(),
|
||||
'edit_url' => $this->getEditUrl(),
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -106,6 +106,11 @@ class Plugin implements Arrayable, \ArrayAccess
|
|||
return SettingRepo::getPluginStatus($this->code);
|
||||
}
|
||||
|
||||
public function getInstalled(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getEnabled(): bool
|
||||
{
|
||||
return $this->enabled;
|
||||
|
|
|
|||
Loading…
Reference in New Issue