🐞 fix(判空): 根据后台错误日志添加空值判断

This commit is contained in:
luying
2023-05-13 19:49:35 +08:00
parent 7bebb83140
commit a7fa3cfb5c
8 changed files with 11 additions and 7 deletions

View File

@@ -154,6 +154,7 @@ export class GuildHandler {
const roleId: string = session.get('roleId');
const roleName: string = session.get('roleName');
const serverId: number = parseInt(session.get('serverId'));
if(!userGuild) return resResult(STATUS.GUILD_NOT_FOUND);
const { guildCode } = userGuild;
let flag = await checkBossBattleMemberExists(guildCode, serverId, roleId, battleCode);
if (!flag) {