Commit 607c47e6 authored by hujiebin's avatar hujiebin

fix:min

parent 59bb0f01
......@@ -215,6 +215,10 @@ func GroupPowerStar(c *gin.Context) (*mycontext.MyContext, error) {
users, err := user_m.GetUserMapByIds(model, userIds)
for _, row := range rank {
user := users[row.UserId]
score := row.Score
if param.Type == groupPower_e.GroupPowerStarTypeActive {
score = score / 60
}
response = append(response, group_power_cv.CvGroupPowerStarData{
User: user_cv.CvUserTiny{
Id: user.ID,
......@@ -223,7 +227,7 @@ func GroupPowerStar(c *gin.Context) (*mycontext.MyContext, error) {
Nick: user.Nick,
Avatar: user.Avatar,
},
Score: row.Score,
Score: score,
})
}
resp.ResponsePageBaseOk(c, response, 0, false)
......@@ -271,6 +275,10 @@ func GroupPowerStarPeriod(c *gin.Context) (*mycontext.MyContext, error) {
users, err := user_m.GetUserMapByIds(model, userIds)
for _, row := range rank {
user := users[row.UserId]
score := row.Score
if param.Type == groupPower_e.GroupPowerStarTypeActive {
score = score / 60
}
response = append(response, group_power_cv.CvGroupPowerStarData{
User: user_cv.CvUserTiny{
Id: user.ID,
......@@ -279,7 +287,7 @@ func GroupPowerStarPeriod(c *gin.Context) (*mycontext.MyContext, error) {
Nick: user.Nick,
Avatar: user.Avatar,
},
Score: row.Score,
Score: score,
})
}
resp.ResponsePageBaseOk(c, response, 0, false)
......
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