Commit 1f4c1476 authored by hujiebin's avatar hujiebin

feat:赛车周榜勋章

parent dda31abb
......@@ -111,6 +111,7 @@ const (
TemplateSmsCode = 40 // 通用模板活动奖励提醒
AddUserBag = 50 // 赠送背包礼物
GemAward = 58 // 粉钻奖励
RaceWeekMedal = 65 // 赛车周榜勋章
)
type MsgSysUserType = mysql.Type
......
......@@ -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()
......
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