|
|
@@ -212,7 +212,7 @@ class ExtensionManager extends Service
|
|
|
'description' => 'max:65535',
|
|
|
'version' => 'max:20',
|
|
|
'core_version' => 'max:20',
|
|
|
- 'author' => 'require|max:100',
|
|
|
+ 'author' => 'max:100',
|
|
|
'email' => 'email|max:100',
|
|
|
'website' => 'url|max:255',
|
|
|
'image' => 'url|max:255',
|
|
|
@@ -230,6 +230,9 @@ class ExtensionManager extends Service
|
|
|
if (!isset($extensionInfo['core_version'])) {
|
|
|
$extensionInfo['core_version'] = '^1.0';
|
|
|
}
|
|
|
+ if (!isset($extensionInfo['author'])) {
|
|
|
+ $extensionInfo['author'] = '未知';
|
|
|
+ }
|
|
|
$extension = ExtensionModel::where(['id' => $name])->append(['status_text'])->findOrEmpty();
|
|
|
if ($extension->isEmpty()) {
|
|
|
$extensionInfo['status'] = 1; // 下载的扩展默认未安装
|