#27819 好友黑名单BUG 同步版署服

This commit is contained in:
liwei 2023-07-11 09:36:40 +08:00
parent 3095e3145e
commit 8719e1c357
2 changed files with 4 additions and 1 deletions

View File

@ -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{

View File

@ -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,