好友:好友添加到黑名单
This commit is contained in:
@@ -360,7 +360,7 @@ export class FriendHandler {
|
||||
|
||||
param.setType(FRIEND_RELATION_TYPE.HAS_BLOCKED);
|
||||
list.push(param);
|
||||
frdRoleIds.push(roleId);
|
||||
frdRoleIds.push(hisRoleId);
|
||||
} else if (type == BLOCK_OPEATE.REMOVE_FRIEND) { // 仅移除
|
||||
|
||||
let myRelation = await FriendRelationModel.findFriendByRole(roleId, POPULATE_TYPE.FRIEND);
|
||||
@@ -384,7 +384,7 @@ export class FriendHandler {
|
||||
await FriendRelationModel.moveFromFriend(hisRoleId, role, friendShip, false, !!curFriend); //从对方好友删除
|
||||
await FriendRelationModel.moveFromFriend(roleId, friend, friendShip, false, !!curFriend); // 删除好友关系并拉黑
|
||||
|
||||
frdRoleIds.push(roleId);
|
||||
frdRoleIds.push(hisRoleId);
|
||||
|
||||
} else if (type == BLOCK_OPEATE.REMOVE_BLACK || type == BLOCK_OPEATE.REMOVE_AND_APPLY) {
|
||||
let myRelation = await FriendRelationModel.findFriendByRole(roleId, POPULATE_TYPE.BLACKLIST);
|
||||
@@ -415,7 +415,7 @@ export class FriendHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
blackRoleIds.push(roleId);
|
||||
blackRoleIds.push(hisRoleId);
|
||||
|
||||
} else {
|
||||
return resResult(STATUS.WRONG_PARMS);
|
||||
|
||||
Reference in New Issue
Block a user