Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
刘俊涛 committed Mar 1, 2017
1 parent 79d0fba commit ff9a158
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/components/LoadPlugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ class LoadPlugins extends Component implements BootstrapInterface
{
public function bootstrap($app)
{
// 先判断是否安装,没安装不操作~
if (!file_exists(Yii::getAlias('@root/web/storage/install.txt'))) {
return;
}

$models = Module::findOpenModules(Module::TYPE_PLUGIN);
foreach ($models as $model) {
/* @var $plugins Plugins*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function up()
'bootstrap' => 'app-frontend|app-backend',
'status' => 1,
'type' => 1,
'config' => '[{"name":"filesystem_type","type":"radio","value":"local","desc":"文件系统","extra":{"local":"本地","qiniu":"七牛"}},{"name":"qiniu_access_key","type":"text","value":"","desc":"七牛access_key"},{"name":"qiniu_access_secret","type":"text","value":"","desc":"七牛access_secret"},{"name":"qiniu_bucket","type":"text","value":"","desc":"七牛bucket"},{"name":"qiniu_domain","type":"text","value":"","desc":"七牛域名"}]',
'created_at' => time(),
'updated_at' => time()
]);
Expand Down

0 comments on commit ff9a158

Please sign in to comment.