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