!= to !==
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user