Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
WangNingkai committed Oct 29, 2018
1 parent c7fdc01 commit 5acbfd3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion app/Console/Commands/Reset.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public function handle()
if ($this->confirm('重置应用将会清空全部数据库数据,继续吗?')) {
$this->warn('========== 开始重置 ==========');
$this->call('cache:clear');
$this->warn('========== 开始重建数据 ==========');
copy(storage_path('app/example.config.json'), storage_path('app/config.json'));
$this->warn('========== 重建完成 ==========');
} else
Expand Down
4 changes: 2 additions & 2 deletions app/Helpers/Tool.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public static function saveConfig($config)
$file = storage_path('app/config.json');
if (!is_writable($file)) {
self::showMessage('权限不足,无法写入配置文件');
abort(403,'权限不足,无法写入配置文件');
abort(403, '权限不足,无法写入配置文件');
};
$saved = file_put_contents($file, json_encode($config));
if ($saved) {
Expand All @@ -233,7 +233,7 @@ public static function config($key = '', $default = '')
};
if (!is_readable($file)) {
self::showMessage('权限不足,无法预取配置文件');
abort(403,'权限不足,无法预取配置文件');
abort(403, '权限不足,无法预取配置文件');
};
$config = file_get_contents($file);
return json_decode($config, true);
Expand Down
7 changes: 0 additions & 7 deletions config/graph.php

This file was deleted.

1 change: 0 additions & 1 deletion database/seeds/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ class DatabaseSeeder extends Seeder
public function run()
{
// $this->call(UsersTableSeeder::class);
$this->call(ParameterTableSeeder::class);
}
}

0 comments on commit 5acbfd3

Please sign in to comment.