军团活动:修复数据查询
This commit is contained in:
@@ -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