测试:添加形象影响接口测试用例

This commit is contained in:
luying
2021-03-12 20:26:06 +08:00
parent 6a7a3eadca
commit fef762747f
6 changed files with 428 additions and 5 deletions
+2 -3
View File
@@ -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;