This commit is contained in:
ASUS 2025-08-18 09:15:19 +08:00
parent ce89c70d63
commit ab0d492380
1 changed files with 0 additions and 18 deletions

View File

@ -5,24 +5,6 @@
use support\App;
// 尝试手动创建日志文件并赋予权限(仅在有目录权限时有效)
$logFile = '/runtime/logs/webman-' . date('Y-m-d') . '.log';
if (!file_exists($logFile)) {
// 创建文件
touch($logFile);
// 尝试设置权限(可能需要服务器用户权限)
chmod($logFile, 0666);
}else {
if(!is_writable($logFile)) {
chmod($logFile, 0666);
}
}
chdir(__DIR__);
require_once __DIR__ . '/../vendor/autoload.php';