refactor(logic): 优化任务完成逻辑并提高可读性

- 将 `QuitSelf` 中的硬编码延时改为 `5 * time.Second`,提高可读性
- 使用 `switch` 语句重构任务奖励逻辑,替代多个 `if` 判断
- 统一处理任务 85、86、87、88 的奖励发放逻辑
- 添加默认分支处理未定义的任务 ID 和状态
- 修复函数签名中的空格格式问题
- 在任务服务中补充玩家 ID 和任务 ID 的赋值逻辑
```
This commit is contained in:
2025-10-10 01:10:13 +08:00
parent aae7074902
commit ecd9cb704c
4 changed files with 38 additions and 21 deletions

View File

@@ -56,7 +56,7 @@ func (h *LogicClient) QuitSelf(a int) error {
//执行退出逻辑
os.Exit(1)
}
<-time.After((50000))
<-time.After(5 * time.Second)
}
}()
//service.KickPlayer(uint32(a))