机器人随机范围修改
This commit is contained in:
parent
af119ebf55
commit
7d73f2036d
|
@ -66,11 +66,13 @@ func RobotRandon() {
|
||||||
for i := 0; i < robotNum; i++ {
|
for i := 0; i < robotNum; i++ {
|
||||||
//随机机器人
|
//随机机器人
|
||||||
snId := accounts[rand.Intn(len(accounts))].SnId
|
snId := accounts[rand.Intn(len(accounts))].SnId
|
||||||
|
num := int64(rand.Intn(8) + 1)
|
||||||
|
score := num*50 + int64(rand.Intn(551)+50)
|
||||||
data := model.RankInvite{
|
data := model.RankInvite{
|
||||||
Platform: "1",
|
Platform: "1",
|
||||||
SnId: snId,
|
SnId: snId,
|
||||||
Num: int64(rand.Intn(4) + 2),
|
Num: num,
|
||||||
Score: int64(rand.Intn(901) + 100),
|
Score: score,
|
||||||
Ts: time.Now().Unix(),
|
Ts: time.Now().Unix(),
|
||||||
Week: common.GetWeekStartTs(time.Now().Unix()),
|
Week: common.GetWeekStartTs(time.Now().Unix()),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue