From 2b4731c03c3f11f4e3d410056b0f24db1082fd22 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Wed, 2 Aug 2023 17:32:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=B6=E6=97=8F7=E6=9C=88=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/group_power_data.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/group_power_data.go b/script/group_power_data.go index d665155..630a8be 100644 --- a/script/group_power_data.go +++ b/script/group_power_data.go @@ -75,7 +75,7 @@ func main() { pageIndex := 1 pageSize := 500 for { - url := fmt.Sprintf("https://apiv2.faceline.live/v1/groupPower/page?lang=zh-cn&ownerCode=&beginDate=2023-04-01&endDate=2023-04-30&pageIndex=%d&pageSize=%d&status=1", pageIndex, pageSize) + url := fmt.Sprintf("https://apiv2.faceline.live/v1/groupPower/page?lang=zh-cn&ownerCode=&beginDate=2023-07-01&endDate=2023-07-31&pageIndex=%d&pageSize=%d&status=1", pageIndex, pageSize) method := "GET" client := &http.Client{} @@ -86,7 +86,7 @@ func main() { return } req.Header.Add("nonce", "hilo") - req.Header.Add("token", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjI1MSwiRXh0ZXJuYWxJZCI6IiIsImV4cCI6MTY4ODU0MDUxOX0.VWJAIv0iWtOgnefrfE5Wbeqc1MvmGjaxuRc47M1PvH8") + req.Header.Add("token", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjI1MSwiRXh0ZXJuYWxJZCI6IiIsImV4cCI6MTY5MzIwNjcxOH0.V-5CfVUGbQDtn04vy85rjb2TtrfntZCuv209tUKFcgU") res, err := client.Do(req) if err != nil { @@ -111,7 +111,7 @@ func main() { data = append(data, resp.Data.Data...) pageIndex++ } - excelFileName := fmt.Sprintf("./家族4月数据.xlsx") + excelFileName := fmt.Sprintf("./家族7月数据.xlsx") xlFile := xlsx.NewFile() sheet, err := xlFile.AddSheet("slot") if err != nil { -- 2.22.0