mirror of
https://github.com/lsky-org/lsky-pro.git
synced 2025-01-05 10:27:39 +08:00
fix a bug
This commit is contained in:
parent
317c2ea369
commit
a2a45e72ba
@ -83,7 +83,7 @@ class Group extends Model
|
||||
*/
|
||||
public static function getDefaultConfigs(): Collection
|
||||
{
|
||||
return collect(config('convention.app.group'));
|
||||
return collect(config('convention.group'));
|
||||
}
|
||||
|
||||
public function users(): HasMany
|
||||
|
@ -35,7 +35,7 @@ class InstallSeeder extends Seeder
|
||||
'name' => '系统默认组&游客组',
|
||||
'is_default' => true,
|
||||
'is_guest' => true,
|
||||
'configs' => config('convention.app.group'),
|
||||
'configs' => config('convention.group'),
|
||||
]);
|
||||
// 创建默认策略
|
||||
$group->strategies()->create([
|
||||
|
@ -5,7 +5,7 @@ use Illuminate\Support\Facades\Route;
|
||||
use App\Enums\GroupConfigKey;
|
||||
use App\Enums\ConfigKey;
|
||||
|
||||
$extensions = config('convention.app.'.ConfigKey::Group)[GroupConfigKey::AcceptedFileSuffixes];
|
||||
$extensions = config('convention.group.accepted_file_suffixes');
|
||||
Route::middleware('cache.headers:public;max_age=2628000;etag')->group(function () use ($extensions) {
|
||||
$extensions = array_merge(array_map('strtoupper', $extensions), array_map('strtolower', $extensions));
|
||||
Route::any('{key}.{extension}', [
|
||||
|
Loading…
Reference in New Issue
Block a user