🐞 fix(gvg): 修复gvg显示问题
This commit is contained in:
@@ -84,7 +84,7 @@ export default class GVGCity extends BaseModel {
|
||||
// 查询联军驻守情况
|
||||
public static async findGuardCity(configId: number, groupKey: string, select = '') {
|
||||
let cities: GVGCityType[] = await GVGCityModel.find({ configId: configId + 1, groupKey, hasGuard: true }).select(select).lean();
|
||||
if(cities) cities = await GVGCityModel.find({ configId, groupKey }).select(select).lean();
|
||||
if(cities.length <= 0) cities = await GVGCityModel.find({ configId, groupKey }).select(select).lean();
|
||||
return cities
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user