Commit 1f4c1476 authored by hujiebin's avatar hujiebin

feat:赛车周榜勋章

parent dda31abb
...@@ -111,6 +111,7 @@ const ( ...@@ -111,6 +111,7 @@ const (
TemplateSmsCode = 40 // 通用模板活动奖励提醒 TemplateSmsCode = 40 // 通用模板活动奖励提醒
AddUserBag = 50 // 赠送背包礼物 AddUserBag = 50 // 赠送背包礼物
GemAward = 58 // 粉钻奖励 GemAward = 58 // 粉钻奖励
RaceWeekMedal = 65 // 赛车周榜勋章
) )
type MsgSysUserType = mysql.Type type MsgSysUserType = mysql.Type
......
...@@ -41,7 +41,7 @@ func ats32(a interface{}) string { ...@@ -41,7 +41,7 @@ func ats32(a interface{}) string {
} }
func main() { 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" method := "GET"
client := &http.Client{} client := &http.Client{}
...@@ -52,7 +52,7 @@ func main() { ...@@ -52,7 +52,7 @@ func main() {
return return
} }
req.Header.Add("nonce", "hilo") 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) res, err := client.Do(req)
if err != nil { if err != nil {
...@@ -95,7 +95,7 @@ func main() { ...@@ -95,7 +95,7 @@ func main() {
for _, v := range svips { for _, v := range svips {
svipMap[v.Code] = v.Level svipMap[v.Code] = v.Level
} }
excelFileName := fmt.Sprintf("./0822水果机中奖榜.xlsx") excelFileName := fmt.Sprintf("./0827水果机中奖榜.xlsx")
xlFile := xlsx.NewFile() xlFile := xlsx.NewFile()
sheet, _ := xlFile.AddSheet("charge") sheet, _ := xlFile.AddSheet("charge")
row := sheet.AddRow() row := sheet.AddRow()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment