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
1f4c1476
Commit
1f4c1476
authored
Aug 29, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:赛车周榜勋章
parent
dda31abb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
enum.go
internal/enum/msg_e/enum.go
+1
-0
fruit_day_award.go
script/fruit_day_award.go
+3
-3
No files found.
internal/enum/msg_e/enum.go
View file @
1f4c1476
...
...
@@ -111,6 +111,7 @@ const (
TemplateSmsCode
=
40
// 通用模板活动奖励提醒
AddUserBag
=
50
// 赠送背包礼物
GemAward
=
58
// 粉钻奖励
RaceWeekMedal
=
65
// 赛车周榜勋章
)
type
MsgSysUserType
=
mysql
.
Type
...
...
script/fruit_day_award.go
View file @
1f4c1476
...
...
@@ -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-2
2&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-2
7&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.eyJVc2VySWQiOjI1MSwiRXh0ZXJuYWxJZCI6IiIsImV4cCI6MTY5
MzIwNjcxOH0.V-5CfVUGbQDtn04vy85rjb2TtrfntZCuv209tUKFcgU
"
)
req
.
Header
.
Add
(
"token"
,
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjI1MSwiRXh0ZXJuYWxJZCI6IiIsImV4cCI6MTY5
NTc5ODg5NX0.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
(
"./082
2
水果机中奖榜.xlsx"
)
excelFileName
:=
fmt
.
Sprintf
(
"./082
7
水果机中奖榜.xlsx"
)
xlFile
:=
xlsx
.
NewFile
()
sheet
,
_
:=
xlFile
.
AddSheet
(
"charge"
)
row
:=
sheet
.
AddRow
()
...
...
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