```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

feat(user): 用户名转换为小写并优化QQ绑定错误消息处理

- 在BindQQ方法中将用户名转换为小写以确保一致性
- 修改bindqq控制器中的错误消息发送方式,使用私信发送绑定结果
- 避免在群聊中显示敏感的绑定错误信息

refactor(robot): 优化扭蛋物品列表展示逻辑

- 引入samber/lo库用于数组去重操作
This commit is contained in:
昔念
2026-03-25 11:18:18 +08:00
parent 6702649cac
commit d995a63ff9
4 changed files with 11 additions and 8 deletions

View File

@@ -15,9 +15,11 @@ func init() {
err := service.NewBaseSysUserService().BindQQ(msgs[1], msgs[2], ctx.Event.Sender.ID)
if err != nil {
ctx.Send(err.Error())
ctx.SendPrivateMessage(ctx.Event.Sender.ID, err.Error())
} else {
ctx.Send("绑定成功")
ctx.SendPrivateMessage(ctx.Event.Sender.ID, "绑定成功")
}
}