✨ feat(武将): 重生体验优化 ca13e8be3 至 4ee246e78
This commit is contained in:
@@ -42,6 +42,11 @@ export default class School extends BaseModel {
|
||||
return result;
|
||||
}
|
||||
|
||||
public static async findByHids(roleId: string, hids: number[]) {
|
||||
let result: SchoolType[] = await SchoolModel.find({ roleId, hid: { $in: hids } }).lean();
|
||||
return result;
|
||||
}
|
||||
|
||||
public static async updateBySclAndPos(roleId: string, schoolId: number, positionId: number, update: SchoolUpdate) {
|
||||
|
||||
const doc = new SchoolModel();
|
||||
|
||||
@@ -29,6 +29,11 @@ export default class Skin extends BaseModel {
|
||||
return rec;
|
||||
}
|
||||
|
||||
public static async findbyRoleAndHids(roleId: string, hids: number[]) {
|
||||
const rec: SkinType[] = await SkinModel.find({ roleId, hid: { $in: hids } }).lean();
|
||||
return rec;
|
||||
}
|
||||
|
||||
public static getInitInfo(hid: number): SkinUpdate {
|
||||
let dicHero = gameData.hero.get(hid);
|
||||
let dicFashion = gameData.fashion.get(dicHero.initialSkin)
|
||||
|
||||
Reference in New Issue
Block a user