fix(weibo): 修复 Cookie 刷新丢失完整会话状态并优化告警通知 #23
Open
LBY123165 wants to merge 5 commits intocnxysoft:next-devfrom
Open
fix(weibo): 修复 Cookie 刷新丢失完整会话状态并优化告警通知 #23LBY123165 wants to merge 5 commits intocnxysoft:next-devfrom
LBY123165 wants to merge 5 commits intocnxysoft:next-devfrom
Conversation
Collaborator
LBY123165
commented
May 4, 2026
- ForceFreshCookie 在 login 模式下保留 SUB/XSRF-TOKEN 不被覆盖
- FreshCookieLogin 新增 genvisitorLogin/refreshLoginXsrfToken/桌面端 UA
- cookie_monitor.go refreshCookieWithAPI 保存全部 API 返回的 Cookie
- sub_autorefresh.go refreshSubFromAPI 保存全部 API 返回的 Cookie
- 新增 CookieAlert 告警类型和 CookieAlertNotify 通知结构体
- init.go 新增 Cookie 健康监控 goroutine,周期性检测和刷新
- 新增 getBotAdmins() 自动检测权限系统管理员,替代 alertPrivate 配置
- 新增 WeiboCookieAlertKey buntdb key
- containerGetIndex.go 修复 4 处 cardsResp → profileResp 变量名错误
- ForceFreshCookie 在 login 模式下保留 SUB/XSRF-TOKEN 不被覆盖 - FreshCookieLogin 新增 genvisitorLogin/refreshLoginXsrfToken/桌面端 UA - cookie_monitor.go refreshCookieWithAPI 保存全部 API 返回的 Cookie - sub_autorefresh.go refreshSubFromAPI 保存全部 API 返回的 Cookie - 新增 CookieAlert 告警类型和 CookieAlertNotify 通知结构体 - init.go 新增 Cookie 健康监控 goroutine,周期性检测和刷新 - 新增 getBotAdmins() 自动检测权限系统管理员,替代 alertPrivate 配置 - 新增 WeiboCookieAlertKey buntdb key - containerGetIndex.go 修复 4 处 cardsResp → profileResp 变量名错误
- 添加 warn 包的单元测试文件 warn_test.go - 实现对 Warn 函数的基本功能测试、空字符串测试和长消息测试
Collaborator
Author
|
@cnxysoft 检查那里有问题,来不及改了(瘫 |
- 测试 MiraiGoModule 方法返回正确的模块ID - 验证 Init、PostInit 和 Serve 方法不会引发panic - 测试 Start 方法的安全性 - 确保 Stop 方法正确调用 WaitGroup 的 Done 方法 test(proxy-pool): 添加代理池模块完整单元测试 - 实现 IProxyPool 接口的模拟实现用于测试 - 验证 Get 方法在未初始化时返回 ErrNil 错误 - 测试 Delete 方法在未初始化时返回 false - 验证 Stop 方法在未初始化时返回 ErrNil 错误 - 测试偏好常量的正确值 - 验证 ErrNil 错误的行为 test(py-proxy-pool): 添加 Python 代理池实现单元测试 - 测试 PyProxy 的 ProxyString 方法 - 验证 Get、Delete 和 Stop 方法对空指针的处理 - 测试 NewPYProxyPool 函数创建代理池的基本行为 - 验证 ProxyPool 结构体正确存储主机地址
- 新增 parseInt64 函数的数值转换测试用例 - 添加 Err 错误类型的测试验证 - 实现 Publish、SendToChat 和 StartReceiving 函数的空值防崩溃测试 - 添加 buildTelegramHTTPClient 客户端构建函数测试 - 完善 Telegram 相关功能的测试覆盖
Collaborator
Author
|
还是等AAAAAAAAAAAAAAAAAAA佬吧 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.