修复bug,添加备案号悬挂功能

This commit is contained in:
2026-04-14 07:53:29 +08:00
parent 72bf0c32b8
commit 4b545ddcf9
5 changed files with 24 additions and 16 deletions

View File

@@ -38,7 +38,7 @@ foreach ($lines as $line) {
}
// 检查必要配置是否存在
$requiredKeys = ['API_BASE_URL', 'API_TIMEOUT', 'JWT_STORAGE_KEY', 'USER_STORAGE_KEY', 'SITE_NAME', 'SESSION_TIMEOUT'];
$requiredKeys = ['API_BASE_URL', 'API_TIMEOUT', 'JWT_STORAGE_KEY', 'USER_STORAGE_KEY', 'SITE_NAME', 'SESSION_TIMEOUT', 'ICP_ENABLED', 'ICP_NUMBER'];
$missingKeys = [];
foreach ($requiredKeys as $key) {
@@ -58,6 +58,8 @@ define('JWT_STORAGE_KEY', $config['JWT_STORAGE_KEY']);
define('USER_STORAGE_KEY', $config['USER_STORAGE_KEY']);
define('SITE_NAME', $config['SITE_NAME']);
define('SESSION_TIMEOUT', (int)$config['SESSION_TIMEOUT']);
define('ICP_ENABLED', $config['ICP_ENABLED'] === 'false');
define('ICP_NUMBER', $config['ICP_NUMBER'] ?? '');
// 会话配置
ini_set('session.cookie_httponly', 1);