diff --git a/modules/config/service/item.go b/modules/config/service/item.go index 21b6a7ba..afe29f79 100644 --- a/modules/config/service/item.go +++ b/modules/config/service/item.go @@ -48,9 +48,8 @@ func (s *ItemService) GetEgg(count int64) []data.ItemInfo { for _, v := range rr { if v.ItemMaxCount != 0 { v.ItemMinCount = int64(grand.N(int(v.ItemMinCount), int(v.ItemMaxCount))) - + res = append(res, data.ItemInfo{ItemId: v.ItemID, ItemCnt: v.ItemMinCount}) } - res = append(res, data.ItemInfo{ItemId: v.ItemID, ItemCnt: v.ItemMinCount}) }