diff --git a/internal/enum/msg_e/enum.go b/internal/enum/msg_e/enum.go index 0b4197b837435d4abbb5be2d12eed4897027b0c8..e471f18f422dd54a9646f4154ea6af8e82a8f9db 100644 --- a/internal/enum/msg_e/enum.go +++ b/internal/enum/msg_e/enum.go @@ -111,6 +111,7 @@ const ( TemplateSmsCode = 40 // 通用模板活动奖励提醒 AddUserBag = 50 // 赠送背包礼物 GemAward = 58 // 粉钻奖励 + RaceWeekMedal = 65 // 赛车周榜勋章 ) type MsgSysUserType = mysql.Type diff --git a/script/fruit_day_award.go b/script/fruit_day_award.go index a7808d57b3a8855055782501e5d8f5151e82f744..5b5b946bca3eb58dd3338fbc31b5f0bfbcb41f18 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=5000&beginDate=2023-08-22&endDate=2023-08-22&userCode=&timezone=1" + url := "https://apiv2.faceline.live/v1/fruitMachine/rank/award?lang=zh-cn&pageIndex=1&pageSize=5000&beginDate=2023-08-27&endDate=2023-08-27&userCode=&timezone=1" method := "GET" client := &http.Client{} @@ -52,7 +52,7 @@ func main() { return } req.Header.Add("nonce", "hilo") - req.Header.Add("token", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjI1MSwiRXh0ZXJuYWxJZCI6IiIsImV4cCI6MTY5MzIwNjcxOH0.V-5CfVUGbQDtn04vy85rjb2TtrfntZCuv209tUKFcgU") + req.Header.Add("token", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjI1MSwiRXh0ZXJuYWxJZCI6IiIsImV4cCI6MTY5NTc5ODg5NX0.1EvN1YLCFuHpZtparqUu7VOX7saoa2sYrcMi6LhVb3w") res, err := client.Do(req) if err != nil { @@ -95,7 +95,7 @@ func main() { for _, v := range svips { svipMap[v.Code] = v.Level } - excelFileName := fmt.Sprintf("./0822水果机中奖榜.xlsx") + excelFileName := fmt.Sprintf("./0827水果机中奖榜.xlsx") xlFile := xlsx.NewFile() sheet, _ := xlFile.AddSheet("charge") row := sheet.AddRow()