Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-group
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-group
Commits
fbf01a1e
Commit
fbf01a1e
authored
Apr 20, 2023
by
chenweijian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
家族贡献排行自动发奖
parent
785c265a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
16 deletions
+18
-16
group_power.go
domain/service/group_power_s/group_power.go
+18
-16
No files found.
domain/service/group_power_s/group_power.go
View file @
fbf01a1e
...
...
@@ -271,11 +271,13 @@ func getAwardAndLogList(model *domain.Model, powerIds []uint64, items []group_po
Award
:
string
(
oAwardJ
),
})
awardList
=
append
(
awardList
,
&
award_tx
.
UserAward
{
MedalId
:
oAward
.
MedalId
,
MedalDuration
:
oAward
.
MedalDay
,
Diamond
:
oAward
.
Diamond
,
NobleLevel
:
oAward
.
Noble
,
NobleDuration
:
oAward
.
NobleDay
})
MedalId
:
oAward
.
MedalId
,
MedalDuration
:
oAward
.
MedalDay
,
Diamond
:
oAward
.
Diamond
,
NobleLevel
:
oAward
.
Noble
,
NobleDuration
:
oAward
.
NobleDay
,
HeaddressId
:
oAward
.
HeaddressId
,
HeaddressDuration
:
oAward
.
HeaddressDay
})
// 家族成员奖励
for
i
,
m
:=
range
v
.
StarList
{
uRank
:=
i
+
1
...
...
@@ -325,23 +327,23 @@ type awardConf struct {
func
CalcGroupPowerMonthRankActConf
()
map
[
int
]
map
[
int
]
*
awardConf
{
return
map
[
int
]
map
[
int
]
*
awardConf
{
1
:
{
0
:
{
MedalId
:
1
,
MedalDay
:
30
,
Diamond
:
300000
,
Noble
:
5
,
NobleDay
:
15
},
1
:
{
MedalId
:
1
,
MedalDay
:
30
,
Diamond
:
100000
,
Noble
:
5
,
NobleDay
:
7
},
4
:
{
HeaddressId
:
1
,
HeaddressDay
:
30
},
0
:
{
MedalId
:
521
1
,
MedalDay
:
30
,
Diamond
:
300000
,
Noble
:
5
,
NobleDay
:
15
},
1
:
{
MedalId
:
5251
,
MedalDay
:
30
,
Diamond
:
100000
,
Noble
:
5
,
NobleDay
:
7
,
HeaddressId
:
2121
,
HeaddressDay
:
30
},
4
:
{
HeaddressId
:
212
1
,
HeaddressDay
:
30
},
},
2
:
{
0
:
{
MedalId
:
1
,
MedalDay
:
30
,
Diamond
:
200000
,
Noble
:
4
,
NobleDay
:
15
},
1
:
{
MedalId
:
1
,
MedalDay
:
30
,
Diamond
:
80000
,
Noble
:
4
,
NobleDay
:
7
},
4
:
{
HeaddressId
:
1
,
HeaddressDay
:
30
},
0
:
{
MedalId
:
522
1
,
MedalDay
:
30
,
Diamond
:
200000
,
Noble
:
4
,
NobleDay
:
15
},
1
:
{
MedalId
:
5261
,
MedalDay
:
30
,
Diamond
:
80000
,
Noble
:
4
,
NobleDay
:
7
,
HeaddressId
:
2131
,
HeaddressDay
:
30
},
4
:
{
HeaddressId
:
213
1
,
HeaddressDay
:
30
},
},
3
:
{
0
:
{
MedalId
:
1
,
MedalDay
:
30
,
Diamond
:
100000
,
Noble
:
5
,
NobleDay
:
5
},
1
:
{
MedalId
:
1
,
MedalDay
:
30
,
Diamond
:
5000
0
},
4
:
{
HeaddressId
:
1
,
HeaddressDay
:
30
},
0
:
{
MedalId
:
523
1
,
MedalDay
:
30
,
Diamond
:
100000
,
Noble
:
5
,
NobleDay
:
5
},
1
:
{
MedalId
:
5271
,
MedalDay
:
30
,
Diamond
:
50000
,
HeaddressId
:
2141
,
HeaddressDay
:
3
0
},
4
:
{
HeaddressId
:
214
1
,
HeaddressDay
:
30
},
},
4
:
{
0
:
{
MedalId
:
1
,
MedalDay
:
30
},
1
:
{
MedalId
:
1
,
MedalDay
:
30
,
HeaddressId
:
1
,
HeaddressDay
:
30
},
0
:
{
MedalId
:
524
1
,
MedalDay
:
30
},
1
:
{
MedalId
:
5281
,
MedalDay
:
30
,
HeaddressId
:
215
1
,
HeaddressDay
:
30
},
},
}
}
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