机器人随机范围修改

This commit is contained in:
by 2024-10-26 13:44:21 +08:00
parent af119ebf55
commit 7d73f2036d
1 changed files with 4 additions and 2 deletions

View File

@ -66,11 +66,13 @@ func RobotRandon() {
for i := 0; i < robotNum; i++ {
//随机机器人
snId := accounts[rand.Intn(len(accounts))].SnId
num := int64(rand.Intn(8) + 1)
score := num*50 + int64(rand.Intn(551)+50)
data := model.RankInvite{
Platform: "1",
SnId: snId,
Num: int64(rand.Intn(4) + 2),
Score: int64(rand.Intn(901) + 100),
Num: num,
Score: score,
Ts: time.Now().Unix(),
Week: common.GetWeekStartTs(time.Now().Unix()),
}