Files
SmsReceiver-go/CHANGELOG-v2.0.1.md
OpenClaw Agent c01b3e82cf fix: v2.0.1 - 修复登录会话创建失败问题
🐛 Bug 修复:
- 修复 securecookie: the value is not valid 错误
- 回退密钥处理逻辑确保向后兼容
- 改进会话初始化错误处理

🔧 变更:
- 简化 auth.Init 函数
- 密钥不足时仅记录警告
- 更新版本号到 v2.0.1

 测试确认:
- 登录流程正常
- API v1 兼容
- Cookie 向后兼容
2026-02-08 23:09:41 +08:00

39 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# v2.0.1 - 2026-02-08
## 🐛 Bug 修复
### 关键修复
-**修复登录会话创建失败问题**
- 问题: `securecookie: the value is not valid`
- 原因: 新版本的 hex 解码逻辑与旧版本生成的 Cookie 不兼容
- 解决: 回退密钥处理逻辑以确保向后兼容性
### 其他改进
- 改进会话初始化: 密钥长度不足时只记录警告,不中断服务
- 增强 API 兼容性: 完美支持 `/api/v1/*``/api/*` 路由
## 🔧 变更文件
- `auth/auth.go`: 简化密钥处理,恢复旧版本兼容性
- `main.go`: 改进会话初始化错误处理
- `Makefile`: 更新版本号为 v2.0.1
- `config.yaml`: 更新版本号为 2.0.1
## 🔄 升级说明
从 v2.0.0 升级到 v2.0.1:
1. **无需特殊操作**: 直接替换二进制文件即可
2. **Cookie 兼容**: 与现有 Cookie 完全兼容,无需清除
3. **配置兼容**: 配置文件无需修改
## ⚠️ 注意事项
- 配置文件中的密钥将直接使用,不再尝试 hex 解码
- 如果密钥过短(<16字节启动时会记录警告但不会失败
## 📦 下载
- 二进制文件: https://gitea.king.nyc.mn/openclaw/SmsReceiver-go/releases/tag/v2.0.1
- Docker 镜像: `ouaone/sms-receiver-go:v2.0.1`