* feat: 优化 cookies 路径管理策略 1. 实现向后兼容的路径迁移逻辑: - 优先使用旧路径 /tmp/cookies.json(如果存在) - 否则使用当前目录 ./cookies.json 2. 移除不必要的目录创建逻辑 - 删除 NewLoadCookie 中的 MkdirAll 调用 - 避免相对路径可能导致的权限问题 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: 添加 cookies.json 到 .gitignore - 避免将包含敏感登录信息的 cookies 文件提交到版本控制 - 保护用户隐私和安全 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
43 lines
699 B
Plaintext
43 lines
699 B
Plaintext
# If you prefer the allow list template instead of the deny list, see community template:
|
|
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
|
|
#
|
|
# Binaries for programs and plugins
|
|
*.exe
|
|
*.exe~
|
|
*.dll
|
|
*.so
|
|
*.dylib
|
|
|
|
# Test binary, built with `go test -c`
|
|
*.test
|
|
|
|
# Code coverage profiles and other test artifacts
|
|
*.out
|
|
coverage.*
|
|
*.coverprofile
|
|
profile.cov
|
|
|
|
# Dependency directories (remove the comment below to include it)
|
|
# vendor/
|
|
|
|
# Go workspace file
|
|
go.work
|
|
go.work.sum
|
|
|
|
# env file
|
|
.env
|
|
|
|
# Editor/IDE
|
|
# .idea/
|
|
# .vscode/
|
|
# .claude/
|
|
|
|
# Build artifacts
|
|
xiaohongshu-mcp
|
|
|
|
# Test scripts
|
|
test_*.sh
|
|
|
|
# Cookies files (contain sensitive login information)
|
|
cookies.json
|