refactor: 优化蛋卡抽奖逻辑
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-24 01:52:56 +08:00
committed by cnb
parent 0aba7e7ccb
commit b3cc06cd38
3 changed files with 8 additions and 13 deletions

View File

@@ -24,10 +24,8 @@ func init() {
count = 10
}
var rets []string
for _, v := range service.NewItemService().GetEgg(int64(count)) {
if v.ItemId == 0 {
continue
}
for _, v := range service.NewItemService().GetEgg(count) {
var buf strings.Builder
buf.WriteString(xmlres.ItemsMAP[int(v.ItemId)].Name)
buf.WriteString(": " + gconv.String(v.ItemCnt))