|
@@ -91,16 +91,16 @@ func (f *FindContactTaskResultNoticeHandler) Handle(ctx context.Context, msg *we
|
|
|
|
|
|
if message.ErrMsg != nil {
|
|
|
if *message.ErrMsg == "用户不存在" {
|
|
|
- update = update.SetIsCanAdd(4)
|
|
|
+ update = update.SetIsCanAdd(5)
|
|
|
} else {
|
|
|
- update = update.SetIsCanAdd(3)
|
|
|
+ update = update.SetIsCanAdd(4)
|
|
|
}
|
|
|
}
|
|
|
if message.Success {
|
|
|
if message.IsFriend {
|
|
|
- update = update.SetIsCanAdd(6)
|
|
|
+ update = update.SetIsCanAdd(7)
|
|
|
} else {
|
|
|
- update = update.SetIsCanAdd(1)
|
|
|
+ update = update.SetIsCanAdd(1) //todo 后续这里会发送 添加请求
|
|
|
}
|
|
|
}
|
|
|
if _, err := update.Save(ctx); err != nil {
|