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,20 @@
#!/bin/bash
# 清空 Laravel 缓存,避免旧的语言缓存/配置缓存导致错误
cd /var/www/onebot
rm -rf storage/framework/cache/data/* 2>/dev/null
rm -rf storage/framework/views/* 2>/dev/null
rm -f bootstrap/cache/config.php bootstrap/cache/routes*.php 2>/dev/null
echo "=== HTTP 状态 ==="
curl -s -o /dev/null -w "HTTP=%{http_code}\n" http://127.0.0.1:8081/
echo "=== 页面标题 ==="
curl -s http://127.0.0.1:8081/ | grep -oE "<title>[^<]*</title>" | head -1
echo "=== 品牌关键词 ==="
BODY=$(curl -s http://127.0.0.1:8081/)
echo "$BODY" | grep -qi "onebot" && echo "含 OneBot" || echo "无 OneBot"
echo "$BODY" | grep -qi "leantime" && echo "含 Leantime" || echo "无 Leantime"
echo "=== 数据库表 ==="
mysql -uonebot -p'OneBot_Db_7xKpQ9z' -h127.0.0.1 onebot -e "SHOW TABLES;" 2>/dev/null | grep -iE "zp_bom|zp_" | head -30