From c457b7e87a7361733c6535d533816a026c1474fe Mon Sep 17 00:00:00 2001 From: jager Date: Fri, 17 Jan 2025 23:01:47 +0800 Subject: [PATCH] modify: chapter --- internal/logic/carv/unlock_chapter_logic.go | 2 +- internal/logic/game7/game7_task_check_logic.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/logic/carv/unlock_chapter_logic.go b/internal/logic/carv/unlock_chapter_logic.go index 73f19c8..b428ade 100644 --- a/internal/logic/carv/unlock_chapter_logic.go +++ b/internal/logic/carv/unlock_chapter_logic.go @@ -71,7 +71,7 @@ func (l *UnlockChapterLogic) UnlockChapter(req *types.UnlockChapterReq) *types.C 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: false}} diff --git a/internal/logic/game7/game7_task_check_logic.go b/internal/logic/game7/game7_task_check_logic.go index c9b0295..14e116e 100644 --- a/internal/logic/game7/game7_task_check_logic.go +++ b/internal/logic/game7/game7_task_check_logic.go @@ -83,7 +83,7 @@ func (l *Game7TaskCheckLogic) Game7TaskCheck(req *types.Game7TaskCheckReq) (*typ case 5: isValid = gp.IsHaveHero31 == 1 case 6: - isValid = gp.Chapter >= 1 + isValid = gp.Chapter > 1 } } }