diff --git a/src/modules/level/dto/level-list.dto.ts b/src/modules/level/dto/level-list.dto.ts index 39ae94c..4617fda 100644 --- a/src/modules/level/dto/level-list.dto.ts +++ b/src/modules/level/dto/level-list.dto.ts @@ -22,10 +22,10 @@ export class LevelListItemDto { @ApiProperty({ description: '答案(仅已通关时返回)', nullable: true }) answer!: string | null; - @ApiProperty({ description: '谐音梗说明(仅已通关时返回)', nullable: true }) + @ApiProperty({ description: '谐音梗说明(始终返回)', nullable: true }) punchline!: string | null; - @ApiProperty({ description: '线索1(仅已通关时返回)', nullable: true }) + @ApiProperty({ description: '线索1(始终返回)', nullable: true }) hint1!: string | null; @ApiProperty({ description: '线索2(仅已通关时返回)', nullable: true }) diff --git a/src/modules/wechat-game/level-fields.helper.ts b/src/modules/wechat-game/level-fields.helper.ts index 1ea0ede..5f27830 100644 --- a/src/modules/wechat-game/level-fields.helper.ts +++ b/src/modules/wechat-game/level-fields.helper.ts @@ -31,6 +31,7 @@ export function pickLevelImageFields(level: Level): LevelImageFields { /** * Pick image fields with answer/hints masked for non-completed levels. + * hint1 is always shown (first clue is the default hint shown to players). */ export function pickLevelImageFieldsMasked( level: Level, @@ -41,8 +42,8 @@ export function pickLevelImageFieldsMasked( image1Description: level.image1Description, image2Url: level.image2Url, image2Description: level.image2Description, - punchline: completed ? level.punchline : null, - hint1: completed ? level.hint1 : null, + punchline: level.punchline, + hint1: level.hint1, hint2: completed ? level.hint2 : null, hint3: completed ? level.hint3 : null, };