修复塔离开bug
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-07 20:50:02 +08:00
parent 9cf6ad8b88
commit 7d7cc0d174
3 changed files with 3 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ func (h Controller) FreshLeaveFightLevel(data *fight.FRESH_LEAVE_FIGHT_LEVEL, c
out := info.NewOutInfo()
copier.CopyWithOption(out, c.GetInfo(), copier.Option{DeepCopy: true})
c.SendPackCmd(2001, out)
//c.SendPackCmd(2001, out)
return result, 0
}

View File

@@ -21,7 +21,7 @@ func (h Controller) AcceptTask(data *task.AcceptTaskInboundInfo, c *player.Playe
}
taskinfo := service.NewTaskService().IsAcceptable(data.TaskId)
if taskinfo == nil {
return nil, errorcode.ErrorCodes.ErrSystemError
return nil, errorcode.ErrorCodes.ErrCannotAcceptDailyTasks
}
if taskinfo.ParentTaskId != 0 && c.Info.GetTask(int(taskinfo.ParentTaskId)) != model.Completed {
return nil, errorcode.ErrorCodes.ErrInsufficientTasksForReward