#27819 好友黑名单BUG 同步版署服
This commit is contained in:
parent
3095e3145e
commit
8719e1c357
@ -89,11 +89,13 @@ func (this *apiComp) Addblack(session comm.IUserSession, req *pb.FriendAddBlackR
|
||||
|
||||
// 将目标从好友列表中移除
|
||||
friendIds := utils.Deletex(self.FriendIds, req.FriendId)
|
||||
|
||||
// 将好友从申请列表移除
|
||||
applyIds := utils.Deletex(self.ApplyIds, req.FriendId)
|
||||
//更新
|
||||
err = this.module.modelFriend.Change(self.Uid, map[string]interface{}{
|
||||
"blackIds": self.BlackIds,
|
||||
"friendIds": friendIds,
|
||||
"applyIds": applyIds,
|
||||
})
|
||||
if err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
|
@ -109,6 +109,7 @@ func (this *apiComp) Agree(session comm.IUserSession, req *pb.FriendAgreeReq) (e
|
||||
}
|
||||
if err = this.module.modelFriend.Change(target.Uid, map[string]interface{}{
|
||||
"friendIds": target.FriendIds,
|
||||
"applyIds": target.ApplyIds,
|
||||
}); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
|
Loading…
Reference in New Issue
Block a user