|
@@ -234,7 +234,7 @@ func SendReward(sess *xorm.Session, uid []string, mid string, period int, sum fl |
|
|
if bili == 0 { |
|
|
if bili == 0 { |
|
|
return nil |
|
|
return nil |
|
|
} |
|
|
} |
|
|
amount := sum * bili / float64(count) |
|
|
|
|
|
|
|
|
amount := sum * (bili / 100) / float64(count) |
|
|
for _, v := range uid { |
|
|
for _, v := range uid { |
|
|
var req = md.DayLuckDrawRewardReq{ |
|
|
var req = md.DayLuckDrawRewardReq{ |
|
|
Uid: v, |
|
|
Uid: v, |
|
|