1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-14 03:05:51 +08:00
parent 7cdf7a0890
commit 06b77d598e
15 changed files with 102 additions and 59 deletions

View File

@@ -56,11 +56,7 @@ func (p *Player) TawerCompletedTask(taskID int, ot int) {
}
// 处理指定分支ot仅奖励存在时才标记分支完成并发奖
p.Service.Task.Exec(uint32(taskID), func(te *model.TaskEX) bool {
// 防御性检查:避免空指针
if te == nil {
return false
}
p.Service.Task.Exec(uint32(taskID), func(te *model.Task) bool {
// 核心检查:指定分支的奖励是否存在
branchGift := p.getTaskGift(taskID, ot)