[ 'name' => '本地存储', //配置参数 'params' => [ ], 'component' => '/src/app/views/setting/components/storage-local.vue', ], self::QINIU => [ 'name' => '七牛云存储', //配置参数 'params' => [ 'bucket' => '存储空间', 'access_key' => 'ACCESS_KEY', 'secret_key' => 'SECRET_KEY', 'domain' => '空间域名' ], 'encrypt_params' => ['secret_key'], 'component' => '/src/app/views/setting/components/storage-qiniu.vue', ], self::ALI => [ 'name' => '阿里云存储', //配置参数 'params' => [ 'bucket' => '存储空间', 'access_key' => 'ACCESS_KEY_ID', 'secret_key' => 'ACCESS_KEY_SECRET', 'endpoint' => 'Endpoint', 'domain' => '空间域名' ], 'encrypt_params' => ['secret_key'], 'component' => '/src/app/views/setting/components/storage-ali.vue', ], self::TENCENT => [ 'name' => '腾讯云存储', //配置参数 'params' => [ 'bucket' => '存储空间', 'region' => 'REGION', 'access_key' => 'SECRET_ID', 'secret_key' => 'SECRET_KEY', 'domain' => '空间域名' ], 'encrypt_params' => ['secret_key'], 'component' => '/src/app/views/setting/components/storage-tencent.vue', ], ]; $extend = event('StorageType'); return array_merge($system, ...$extend); } }