更新一下const的使用

This commit is contained in:
luying
2020-12-09 17:23:15 +08:00
parent 0bec9d8020
commit b052568832
10 changed files with 69 additions and 56 deletions

View File

@@ -30,17 +30,15 @@ export class RoleHandler {
}
async initHeros(roleId: string, roleName: string) {
const seqId = await CounterModel.getNewCounter(COUNTER.HID);
let ce = calculateCE({hid: 1, lv: 1});
const heroInfo = {
roleId,
roleName,
hid: 1,
hName: '曹操',
seqId,
star: 0,
ce
quality: 1,
job: 1,
star: 0
}
await HeroModel.createHero(heroInfo);
}