feat: 支持返回登录二维码与 Docker 部署 (#155)

* feat: 支持返回登录二维码与 Docker 部署

* feat: 完善扫码登录功能

* fix: 修复当存在已经登录的情况,上层还会启动 goroutine的问题,并把 mcp 的返回增加为图片格式
This commit is contained in:
lmxdawn
2025-09-25 19:44:01 +08:00
committed by GitHub
parent cc5038decd
commit a8a2743a51
14 changed files with 314 additions and 5 deletions

View File

@@ -56,6 +56,11 @@ func GetCookiesFilePath() string {
return oldPath
}
path := os.Getenv("COOKIES_PATH") // 判断环境变量
if path == "" {
path = "cookies.json" // fallback本地调试时用当前目录
}
// 文件不存在,使用新路径(当前目录)
return "cookies.json"
return path
}