好友 fix: 对方申请数满时不提交申请

This commit is contained in:
luying
2021-02-03 11:51:44 +08:00
parent 2d2c9907ab
commit a2284918d9

View File

@@ -311,9 +311,9 @@ export class FriendHandler {
let applyResult = await RoleModel.increaseFriendApplyCnt(hisRoleId, 1, 50); let applyResult = await RoleModel.increaseFriendApplyCnt(hisRoleId, 1, 50);
if(!applyResult) { if(!applyResult) {
str = getResStr(STATUS.FRIEND_HIS_APPLY_MAX); str = getResStr(STATUS.FRIEND_HIS_APPLY_MAX);
} else {
await FriendApplyModel.createApply(hisRoleId, role);
} }
await FriendApplyModel.createApply(hisRoleId, role);
} }
} else { } else {