OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)

This commit is contained in:
wangruiguo
2026-09-03 18:49:20 +08:00
commit d647428529
3501 changed files with 1988906 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#!/bin/bash
cd /var/www/onebot
echo "=== storage/logs 权限 ==="
ls -la storage/ storage/logs/ 2>&1
echo ""
echo "=== 检查日志配置 ==="
grep -rE "LOG_CHANNEL|LEAN_LOG|LOG_PATH" .env config/ app/Core/Configuration/ 2>/dev/null | head -20
echo ""
echo "=== 直接 CLI 调用 setupDB 捕获异常 ==="
sudo -u www-data php -d display_errors=1 -d error_reporting=E_ALL -r '
require "/var/www/onebot/vendor/autoload.php";
$app = require "/var/www/onebot/bootstrap/app.php";
\Leantime\Core\Bootloader::getInstance()->boot($app);
$repo = app()->make(\Leantime\Domain\Install\Repositories\Install::class);
try {
$result = $repo->setupDB(["email"=>"admin@onebot.local","firstname"=>"Admin","lastname"=>"OneBot","company"=>"OneBot"]);
echo "setupDB result: " . var_export($result, true) . PHP_EOL;
} catch (\Throwable $e) {
echo "EXCEPTION: " . $e->getMessage() . PHP_EOL;
echo "FILE: " . $e->getFile() . ":" . $e->getLine() . PHP_EOL;
echo $e->getTraceAsString() . PHP_EOL;
}
' 2>&1 | head -60