modify: chapter

This commit is contained in:
2025-01-17 23:01:47 +08:00
parent 7cc62b8b4f
commit c457b7e87a
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ func (l *UnlockChapterLogic) UnlockChapter(req *types.UnlockChapterReq) *types.C
return &types.CarvResult{Result: &types.Result{IsValid: false}} return &types.CarvResult{Result: &types.Result{IsValid: false}}
} }
if gp.Chapter >= req.Chapter { if gp.Chapter > req.Chapter {
return &types.CarvResult{Result: &types.Result{IsValid: true}} return &types.CarvResult{Result: &types.Result{IsValid: true}}
} }
return &types.CarvResult{Result: &types.Result{IsValid: false}} return &types.CarvResult{Result: &types.Result{IsValid: false}}

View File

@@ -83,7 +83,7 @@ func (l *Game7TaskCheckLogic) Game7TaskCheck(req *types.Game7TaskCheckReq) (*typ
case 5: case 5:
isValid = gp.IsHaveHero31 == 1 isValid = gp.IsHaveHero31 == 1
case 6: case 6:
isValid = gp.Chapter >= 1 isValid = gp.Chapter > 1
} }
} }
} }