1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-09 01:29:33 +08:00
parent ffe3ff18bf
commit 2860bcfa5c
12 changed files with 319 additions and 64 deletions

View File

@@ -44,7 +44,7 @@ func (s *PetFusionService) Data(p1, p2, rand uint32) uint32 {
props = append(props, int(v.Probability))
}
t,_:=utils.RandomByIntProbs(pets, props)
t, _ := utils.RandomByWeight(pets, props)
return uint32(t)
//说明是失败,直接返回失败
} else {