Commit 84f6a85
优化 cookies 路径管理策略 (#127)
* feat: 优化 cookies 路径管理策略
1. 实现向后兼容的路径迁移逻辑:
- 优先使用旧路径 /tmp/cookies.json(如果存在)
- 否则使用当前目录 ./cookies.json
2. 移除不必要的目录创建逻辑
- 删除 NewLoadCookie 中的 MkdirAll 调用
- 避免相对路径可能导致的权限问题
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* feat: 添加 cookies.json 到 .gitignore
- 避免将包含敏感登录信息的 cookies 文件提交到版本控制
- 保护用户隐私和安全
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
---------
Co-authored-by: Claude <[email protected]>1 parent e1d43d2 commit 84f6a85
2 files changed
+16
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
| |||
47 | 43 | | |
48 | 44 | | |
49 | 45 | | |
| 46 | + | |
| 47 | + | |
50 | 48 | | |
| 49 | + | |
51 | 50 | | |
52 | | - | |
53 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
54 | 61 | | |
0 commit comments