好友:在黑名单内的玩家的申请不发给拉黑的那个人
This commit is contained in:
@@ -148,7 +148,9 @@ export class FriendHandler {
|
|||||||
} else if (type == FRIEND_RELATION_TYPE.MYSELF) {
|
} else if (type == FRIEND_RELATION_TYPE.MYSELF) {
|
||||||
str = getResStr(STATUS.FRIEND_YOURSELF); continue;
|
str = getResStr(STATUS.FRIEND_YOURSELF); continue;
|
||||||
}
|
}
|
||||||
|
let hisRelation = await FriendRelationModel.findFriendByRole(hisRoleId, POPULATE_TYPE.NOT);
|
||||||
|
let hisType = getRecommendType(hisRelation, hisRoleId, roleId);
|
||||||
|
if(hisType == FRIEND_RELATION_TYPE.NORMAL) {
|
||||||
let incResult = await RoleModel.increaseFriendApplyCnt(hisRoleId, 1, FRIEND.FRIEND_MANAGE_APPLICATION);
|
let incResult = await RoleModel.increaseFriendApplyCnt(hisRoleId, 1, FRIEND.FRIEND_MANAGE_APPLICATION);
|
||||||
if (!incResult) {
|
if (!incResult) {
|
||||||
str = getResStr(STATUS.FRIEND_HIS_APPLY_MAX); continue;
|
str = getResStr(STATUS.FRIEND_HIS_APPLY_MAX); continue;
|
||||||
@@ -162,6 +164,7 @@ export class FriendHandler {
|
|||||||
sendMessageToUserWithSuc(hisRoleId, PUSH_ROUTE.FRIEND_APPLY, { apply: myApply }, hisOnlineInfo.sid);
|
sendMessageToUserWithSuc(hisRoleId, PUSH_ROUTE.FRIEND_APPLY, { apply: myApply }, hisOnlineInfo.sid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return resResult(STATUS.SUCCESS, {
|
return resResult(STATUS.SUCCESS, {
|
||||||
isSuccess: str == '',
|
isSuccess: str == '',
|
||||||
|
|||||||
Reference in New Issue
Block a user