测试:添加形象影响接口测试用例
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { gameData } from "../pubUtils/data";
|
||||
import { gameData, getDicFriendByLv } from "../pubUtils/data";
|
||||
import { RoleType, RoleModel } from "../db/Role";
|
||||
import { FriendRelationType, Relation } from "../db/FriendRelation";
|
||||
import { getResStr } from "../pubUtils/util";
|
||||
@@ -16,8 +16,7 @@ import { isRoleOnline } from "./redisService";
|
||||
export async function increaseFrdCnt(role1: RoleType, role2: RoleType, originalFriendCnt: number) {
|
||||
|
||||
let { roleId, lv, friendCnt } = role1;
|
||||
let dicFriend = gameData.roleFriend.get(lv);
|
||||
|
||||
let dicFriend = getDicFriendByLv(lv);
|
||||
if(friendCnt >= dicFriend.frdCnt) return getResStr(STATUS.FRIEND_MY_CNT_MAX);
|
||||
|
||||
let { roleId: _roleId, lv: _lv, friendCnt: _friendCnt } = role2;
|
||||
|
||||
Reference in New Issue
Block a user