Commit 2b4731c0 authored by hujiebin's avatar hujiebin

家族7月数据

parent 1ea6b2ab
......@@ -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 {
......
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