From e93e1c892b25e4413080442e244469f1f0aa2118 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 9 Dec 2022 19:25:54 +0800 Subject: [PATCH] test --- svc/svc_day_luck_draw_reward.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svc/svc_day_luck_draw_reward.go b/svc/svc_day_luck_draw_reward.go index bdc1e8a..a2df61a 100644 --- a/svc/svc_day_luck_draw_reward.go +++ b/svc/svc_day_luck_draw_reward.go @@ -318,7 +318,7 @@ func SetAllAwardsProbability(sess *xorm.Session, mid string) error { }(i) } for _, award := range rewardData { - probabilityD, err := decimal.NewFromString(award.Num) + probabilityD, err := decimal.NewFromString(award.Probability) if err != nil { probabilityD = decimal.NewFromInt(0) }