更新一下const的使用
This commit is contained in:
@@ -204,8 +204,8 @@ async function checkCond(roleId: string, heroes, type: number, param: number, cn
|
||||
switch (type) {
|
||||
case 1:
|
||||
for(let seqId of heroes) {
|
||||
const {star, fire} = await HeroModel.findBySeqIdAndRole(seqId, roleId);
|
||||
if (star + fire >= param) {
|
||||
const {star, colorStar} = await HeroModel.findBySeqIdAndRole(seqId, roleId);
|
||||
if (star + colorStar >= param) {
|
||||
heroCnt++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user