Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-common
Commits
2b4731c0
Commit
2b4731c0
authored
Aug 02, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
家族7月数据
parent
1ea6b2ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
group_power_data.go
script/group_power_data.go
+3
-3
No files found.
script/group_power_data.go
View file @
2b4731c0
...
...
@@ -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-0
4-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-0
7-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.eyJVc2VySWQiOjI1MSwiRXh0ZXJuYWxJZCI6IiIsImV4cCI6MTY
4ODU0MDUxOX0.VWJAIv0iWtOgnefrfE5Wbeqc1MvmGjaxuRc47M1PvH8
"
)
req
.
Header
.
Add
(
"token"
,
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjI1MSwiRXh0ZXJuYWxJZCI6IiIsImV4cCI6MTY
5MzIwNjcxOH0.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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment