🐞 fix(gvg): 修复防御cd,积分点驻守变更
This commit is contained in:
@@ -4,6 +4,7 @@ import Role, { RoleType } from '../db/Role';
|
||||
import { genCode } from '../pubUtils/util';
|
||||
import { GuildType } from './Guild';
|
||||
import { LEAGUE_AUTH } from '../consts';
|
||||
import { GVG } from '../pubUtils/dicParam';
|
||||
|
||||
class Member {
|
||||
@prop({ required: true })
|
||||
@@ -88,7 +89,7 @@ export default class GVGLeague extends BaseModel {
|
||||
|
||||
public static async findByCondition(type: number, serverIds: number[], page: number, name: string) {
|
||||
let query = {
|
||||
status: 1, type, serverId: { $in: serverIds }
|
||||
status: 1, type, serverId: { $in: serverIds }, guildCnt: { $lt: GVG.GVG_LEAGUE_COMPOSE }
|
||||
};
|
||||
if(name) {
|
||||
query['name'] = { $regex: new RegExp(name, 'i') };
|
||||
|
||||
Reference in New Issue
Block a user