solupro 5 gadi atpakaļ
vecāks
revīzija
4dfc395cbc
2 mainītis faili ar 7 papildinājumiem un 1 dzēšanām
  1. 6 0
      main.go
  2. 1 1
      runner.go

+ 6 - 0
main.go

@@ -4,6 +4,7 @@ import (
 	"encoding/json"
 	"flag"
 	"fmt"
+	"github.com/sirupsen/logrus"
 	"io/ioutil"
 )
 
@@ -11,6 +12,11 @@ var ENV string
 var NET_HOST string
 
 func main() {
+	logrus.SetFormatter(&logrus.TextFormatter{
+		DisableColors: true,
+		FullTimestamp: true,
+	})
+
 	flag.StringVar(&ENV, "env", "dev", "执行环节dev|prod")
 	flag.Parse()
 

+ 1 - 1
runner.go

@@ -74,7 +74,7 @@ func worker(bot Account, botCh chan<- Account) {
 	atomic.AddInt64(&Working, 1)
 	for {
 		rand.Seed(time.Now().UnixNano())
-		c := rand.Intn(11) + 20
+		c := rand.Intn(51) + 30
 
 		err := Transfer(bot.Player, bot.StarId)
 		if err != nil { // 下注失败退出