好友:修复无法添加好友bug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user