!= to !==

This commit is contained in:
2025-05-28 20:12:56 +08:00
parent 34eec38036
commit 8da20ab53e
6 changed files with 11 additions and 11 deletions

View File

@@ -42,7 +42,7 @@ export class DOStage {
}
const levelStr = LevelManager.getInstance().getLevelStr(this.data.difficulty, this.data.index)
if (!levelStr || levelStr.length != 81) {
if (!levelStr || levelStr.length !== 81) {
console.log("levelStr error", this.data.difficulty, this.data.index, levelStr)
}
const list = new Map()

View File

@@ -92,7 +92,7 @@ export class DOUser {
}
public set_trophyNew(record: TrophyRecord, isNew: boolean): void {
if (record.isNew != isNew) {
if (record.isNew !== isNew) {
record.isNew = isNew
StorageManager.getInstance().onUserChanged()
}

View File

@@ -131,7 +131,7 @@ export class LevelManager {
// 检查关卡配置
this.levelMap.forEach((list, key) => {
for (let i = 0; i < list.length; i++) {
if (list[i].length != 81) {
if (list[i].length !== 81) {
console.error("关卡配置有误>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>", key, i)
}
}