fix: 修正伤害类型和任务状态判断逻辑
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-05 17:40:42 +08:00
committed by cnb
parent 3833fd3884
commit 03d93a2fba
4 changed files with 5 additions and 6 deletions

View File

@@ -104,7 +104,7 @@ func (s *InfoService) SetLogin() *model.PlayerInfo {
//tt.Data.FightTime = 60 * 60 * 2 //重置战斗次数
for _, v := range service.NewTaskService().GetDaily() {
if v.IsAcceptable == 0 {
if v.IsAcceptable == 1 {
tt.Data.SetTask(int(v.TaskId), model.Unaccepted)
} else {
tt.Data.SetTask(int(v.TaskId), model.Reserved)
@@ -127,7 +127,7 @@ func (s *InfoService) SetLogin() *model.PlayerInfo {
tt.WeekLastResetTime = gtime.Now()
for _, v := range service.NewTaskService().GetWeek() {
if v.IsAcceptable == 0 {
if v.IsAcceptable == 1 {
tt.Data.SetTask(int(v.TaskId), model.Unaccepted)
} else {
tt.Data.SetTask(int(v.TaskId), model.Reserved)