机器人随机范围修改
This commit is contained in:
parent
af119ebf55
commit
7d73f2036d
|
@ -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()),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue