形象:解锁头像相框形象

This commit is contained in:
luying
2021-03-11 19:29:51 +08:00
parent e888ab916d
commit 95f4221217
13 changed files with 145 additions and 65 deletions
-5
View File
@@ -266,11 +266,6 @@ export default class Hero extends BaseModel {
const user: HeroType[] = await HeroModel.find(searchObj).lean(lean);
return user;
}
public static async checkSkin(roleId: string, skinId: number) {
let hero = await HeroModel.findOne({ roleId, 'skins.id': skinId }).lean();
return !!hero;
}
}
export const HeroModel = getModelForClass(Hero);