Skip to content

Commit

Permalink
chore(lint): 改进代码样式 (#891)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] authored Apr 23, 2024
1 parent b050b5d commit e089120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/ai_reply/ai_tts.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (t *ttsmode) setSoundMode(ctx *zero.Ctx, name string, character int) error
}
}
m := ctx.State["manager"].(*ctrl.Control[*zero.Ctx])
//按原来的逻辑map存的是前16位
// 按原来的逻辑map存的是前16位
storeIndex := (m.GetData(gid) &^ 0xffff00) | ((index << 8) & 0xff00) | ((int64(character) << 16) & 0xff0000)
(*syncx.Map[int64, int64])(t).Store(gid, (storeIndex>>8)&0xffff)
return m.SetData(gid, storeIndex)
Expand Down

0 comments on commit e089120

Please sign in to comment.