🧪 test(debug): 新武将关卡添加重置功能
This commit is contained in:
@@ -2,6 +2,7 @@ import { Application, BackendSession, HandlerService, } from 'pinus';
|
||||
import { resResult } from '../../../pubUtils/util';
|
||||
import { STATUS } from '../../../consts';
|
||||
import { getPlayerNewHeroGKData } from '../../../services/activity/newHeroGKService';
|
||||
import { ActivityNewHeroGKModel } from '../../../db/ActivityNewHeroGK';
|
||||
|
||||
|
||||
export default function (app: Application) {
|
||||
@@ -63,4 +64,11 @@ export class NewHeroGKHandler {
|
||||
return resResult(STATUS.SUCCESS);
|
||||
}
|
||||
|
||||
async debugResetGK(msg: {}, session: BackendSession) {
|
||||
const roleId = session.get('roleId');
|
||||
await ActivityNewHeroGKModel.deleteMany({ roleId });
|
||||
|
||||
return resResult(STATUS.SUCCESS);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user