军团活动:修复debug接口
This commit is contained in:
@@ -287,11 +287,11 @@ export class GateActivityHandler {
|
||||
}
|
||||
|
||||
// ! 测试接口
|
||||
async debugIncChallengeCnt(msg: { }, session: BackendSession) {
|
||||
async debugIncChallengeCnt(msg: { }, session: BackendSession) {
|
||||
let roleId = session.get('roleId');
|
||||
let res = await UserGuildActivityRecModel.updateInfoByRoleId(roleId, { challengeCnt: 0 });
|
||||
let res = await UserGuildActivityRecModel.updateInfoByRoleId(roleId, { challengeCnt: -100 });
|
||||
|
||||
return resResult(STATUS.SUCCESS, { challengeCnt: res.challengeCnt });
|
||||
return resResult(STATUS.SUCCESS, { challengeCnt: GUILDACTIVITY.GATEACTIVITY_CHALLENGE_TIMES - (res?.challengeCnt||0) });
|
||||
}
|
||||
|
||||
// ! 测试接口
|
||||
|
||||
16
game-server/app/servers/guild/handler/raceActivityHandler.ts
Normal file
16
game-server/app/servers/guild/handler/raceActivityHandler.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Application, ChannelService } from "pinus";
|
||||
|
||||
export default function (app: Application) {
|
||||
return new RaceActivityHandler(app);
|
||||
}
|
||||
|
||||
export class RaceActivityHandler {
|
||||
|
||||
channelService: ChannelService;
|
||||
constructor(private app: Application) {
|
||||
this.channelService = app.get('channelService');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user