diff --git a/resource/mysql/mysql.go b/resource/mysql/mysql.go index b7737fd2415c84f441d0589cbd3430a65b6458aa..bcae75068d8c0bfde5399a301291c94dc427eb87 100644 --- a/resource/mysql/mysql.go +++ b/resource/mysql/mysql.go @@ -51,8 +51,8 @@ func init() { if d, err := Db.DB(); err == nil { d.SetConnMaxLifetime(time.Minute * 30) // 连接可复用的最大时间。 - d.SetMaxIdleConns(200) // 空闲连接数 - d.SetMaxOpenConns(200) // 最大连接数 + d.SetMaxIdleConns(400) // 空闲连接数 + d.SetMaxOpenConns(400) // 最大连接数 if err := d.Ping(); err != nil { fmt.Printf("database ping error %v", err) } diff --git a/script/fruit_day_award.go b/script/fruit_day_award.go index 5967d71b046a59160c9097ce21faf9b0c5fe3db5..416cd0d5cb6c1307ce99ab156320674a21b07949 100644 --- a/script/fruit_day_award.go +++ b/script/fruit_day_award.go @@ -41,7 +41,7 @@ func ats32(a interface{}) string { } func main() { - url := "https://apiv2.faceline.live/v1/fruitMachine/rank/award?lang=zh-cn&pageIndex=1&pageSize=50000&beginDate=2023-08-19&endDate=2023-08-19&userCode=&timezone=1" + url := "https://apiv2.faceline.live/v1/fruitMachine/rank/award?lang=zh-cn&pageIndex=1&pageSize=50000&beginDate=2023-08-20&endDate=2023-08-20&userCode=&timezone=1" method := "GET" client := &http.Client{} @@ -95,7 +95,7 @@ func main() { for _, v := range svips { svipMap[v.Code] = v.Level } - excelFileName := fmt.Sprintf("./0819水果机中奖榜.xlsx") + excelFileName := fmt.Sprintf("./0820水果机中奖榜.xlsx") xlFile := xlsx.NewFile() sheet, _ := xlFile.AddSheet("charge") row := sheet.AddRow()