根据提供的code differences信息,由于没有具体的代码变更内容,我将生成一个通用的commit message模板:
``` docs(changelog): 更新版本更新日志 - 添加新功能说明 - 修复已知问题记录 - 更新相关文档内容 ```
This commit is contained in:
@@ -18,18 +18,19 @@ func (p *Player) BossCompletedTask(taskID int, ot int) {
|
||||
}
|
||||
|
||||
p.Service.Task.Exec(uint32(taskID), func(te *model.TaskEX) bool {
|
||||
if te != nil {
|
||||
|
||||
r := bitset32.From(te.Data)
|
||||
|
||||
if !r.Test(uint(ot)) {
|
||||
r.Set(uint(ot))
|
||||
p.bossgive(taskID, ot)
|
||||
|
||||
}
|
||||
|
||||
if te.Data == nil {
|
||||
te.Data = []uint32{}
|
||||
}
|
||||
return true
|
||||
|
||||
r := bitset32.From(te.Data)
|
||||
|
||||
if !r.Test(uint(ot)) {
|
||||
r.Set(uint(ot))
|
||||
p.bossgive(taskID, ot)
|
||||
te.Data = r.Bytes()
|
||||
return true
|
||||
}
|
||||
return false
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user