✨ feat(好友切磋): a7befab5f到f5146b93d

This commit is contained in:
luying
2023-09-11 18:42:57 +08:00
parent ab4ac34184
commit 92a10011ed
8 changed files with 108 additions and 3 deletions
@@ -31,6 +31,7 @@ import { getSchoolPoint } from "../../../services/roleService";
import { LadderMatchModel } from "../../../db/LadderMatch";
import { ArtifactModel } from "../../../db/Artifact";
import { AuthorBookModel } from "../../../db/AuthorBook";
import { getIsExistLadderDefense } from "../../../services/ladderService";
export default function (app: Application) {
@@ -678,7 +679,7 @@ export class FriendHandler {
let { serverId } = role;
let serverName = await getServerName(serverId);
param.setServerName(serverId, serverName);
return resResult(STATUS.SUCCESS, {...param, isRobot });
return resResult(STATUS.SUCCESS, {...param, isRobot, isExistLadderDefense: await getIsExistLadderDefense(targetRoleId) });
}
}