好友:修复无法添加好友bug

This commit is contained in:
luying
2021-04-21 17:04:07 +08:00
parent 7540aa5150
commit 9775a9c591

View File

@@ -20,7 +20,7 @@ export async function increaseFrdCnt(role1: RoleType, role2: RoleType, originalF
if(friendCnt >= dicFriend.frdCnt) return getResStr(STATUS.FRIEND_MY_CNT_MAX);
let { roleId: _roleId, lv: _lv, friendCnt: _friendCnt } = role2;
let _dicFriend = gameData.roleFriend.get(_lv);
let _dicFriend = getDicFriendByLv(_lv);
if(_friendCnt >= _dicFriend.frdCnt) return getResStr(STATUS.FRIEND_THEY_CNT_MAX);
let incMyFrdCnt = await RoleModel.increaseFriendCnt(roleId, 1, dicFriend.frdCnt);