v1.0.0 bug修复更新

This commit is contained in:
2026-04-02 01:18:45 +08:00
parent d2850acc5b
commit e8a11909de
3 changed files with 95 additions and 176 deletions

30
config.php.example Normal file
View File

@@ -0,0 +1,30 @@
<?php
/**
* PerToolBox Front - 配置文件
*
* Copyright (C) 2024 Sea Network Technology Studio
* Author: Canglan <admin@sea-studio.top>
* License: AGPL v3
*/
// API 基础地址(后端服务地址)
define('API_BASE_URL', getenv('API_BASE_URL') ?: 'http://your-domain/api/v1');
// 网站名称
define('SITE_NAME', 'PerToolBox');
// 调试模式
define('DEBUG', getenv('DEBUG') === 'false');
// 错误报告
if (DEBUG) {
error_reporting(E_ALL);
ini_set('display_errors', 1);
} else {
error_reporting(0);
ini_set('display_errors', 0);
}
// 时区设置
date_default_timezone_set('Asia/Shanghai');
?>