巅峰演武:赛季优化修改
This commit is contained in:
@@ -59,6 +59,10 @@ export default class PvpSeasonResult extends BaseModel {
|
||||
let result: PvpSeasonResultType = await PvpSeasonResultModel.findOne({ roleId, show: true }).lean();
|
||||
return result;
|
||||
}
|
||||
|
||||
public static async checkResultBySeasonNum(roleId: string, seasonNum: number) {
|
||||
return await PvpSeasonResultModel.exists({ roleId, seasonNum });
|
||||
}
|
||||
}
|
||||
|
||||
export const PvpSeasonResultModel = getModelForClass(PvpSeasonResult);
|
||||
|
||||
Reference in New Issue
Block a user