@@ -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()
@@ -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 { // 下注失败退出