军团活动:修复数据查询
This commit is contained in:
@@ -374,7 +374,7 @@ export class GateActivityHandler {
|
||||
let { aid } = msg;
|
||||
await GuildActivityRecordModel.getRecord(guildCode, serverId, aid);
|
||||
let userGuild = await UserGuildModel.getMyGuild(roleId);
|
||||
let result = await GuildActivityRecordModel.updateInfo(guildCode, { memberCnt: 1, members: [{ roleId, job: userGuild.job }], auctionType: aid + 1 });
|
||||
let result = await GuildActivityRecordModel.updateInfo(guildCode, aid, { memberCnt: 1, members: [{ roleId, job: userGuild.job }], auctionType: aid + 1 });
|
||||
|
||||
return resResult(STATUS.SUCCESS, {
|
||||
sourceType: result.auctionType,
|
||||
|
||||
@@ -146,7 +146,7 @@ export class RaceActivityHandler {
|
||||
let event = await obj.useItem(roleId, sid, guildCode, toGuild, id, count);
|
||||
if (!event) return resResult(STATUS.BATTLE_CONSUMES_NOT_ENOUGH);
|
||||
|
||||
await GuildActivityRecordModel.pushEvent(guildCode, event);
|
||||
await GuildActivityRecordModel.pushEvent(guildCode, this.aid, event);
|
||||
|
||||
return resResult(STATUS.SUCCESS, {
|
||||
timestamp: Date.now(),
|
||||
@@ -172,7 +172,7 @@ export class RaceActivityHandler {
|
||||
|
||||
let hasShow = !!myGuildActivityRec.hasShow;
|
||||
if(!hasShow) {
|
||||
await UserGuildActivityRecModel.updateInfo(guildCode, { hasShow: true });
|
||||
await UserGuildActivityRecModel.updateInfo(code, { hasShow: true });
|
||||
}
|
||||
|
||||
// 返回当前军团总军功
|
||||
|
||||
Reference in New Issue
Block a user