2025-11-07 09:56:20 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
'enable' => true,
|
|
|
|
|
|
|
|
|
|
// 默认连接名称
|
2026-02-15 19:41:56 +08:00
|
|
|
'default' => 'other', // 支持bilibili的BV模式
|
2025-11-07 09:56:20 +08:00
|
|
|
|
|
|
|
|
// Hashids modes
|
|
|
|
|
'modes' => [
|
|
|
|
|
'main' => [
|
2026-02-15 19:41:56 +08:00
|
|
|
'salt' => 'n1e5a6s6m7',
|
|
|
|
|
'length' => 10,
|
2025-11-07 09:56:20 +08:00
|
|
|
],
|
|
|
|
|
'other' => [
|
2026-02-15 19:41:56 +08:00
|
|
|
'salt' => 'n1e5a6s6m7',
|
|
|
|
|
'length' => 10,
|
|
|
|
|
'alphabet' => 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'
|
2025-11-07 09:56:20 +08:00
|
|
|
],
|
|
|
|
|
'bilibili' => [
|
|
|
|
|
// 此模式无需添加其他的配置
|
|
|
|
|
// 前缀超过2位英文字母忽略
|
|
|
|
|
'prefix' => '', // B站BV模式前缀类似: BV1fx411v7eo = 12345678
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
];
|