...
|
...
|
@@ -50,7 +50,7 @@ func AchievementPool(header *protocol.RequestHeader, request *protocol.Achieveme |
|
|
Achievement: GetAchievementItem(header, item),
|
|
|
GraspScore: protocol.GraspScore{
|
|
|
GraspScore: item.UserGraspScore,
|
|
|
GraspScorePercent: item.UserGraspScore,
|
|
|
GraspScorePercent: utils.DecimalToNumber(item.UserGraspScore),
|
|
|
},
|
|
|
StatisticData: GetStatisticData(header, item.StaticDataOrm, item.AchievementId),
|
|
|
ChanceTemplate: getTemplate(item.TemplateId),
|
...
|
...
|
@@ -137,7 +137,7 @@ func AchievementDetail(header *protocol.RequestHeader, request *protocol.Achieve |
|
|
rsp.Achievement = GetAchievementItem(header, item)
|
|
|
rsp.GraspScore = protocol.GraspScore{
|
|
|
GraspScore: item.UserGraspScore,
|
|
|
GraspScorePercent: item.UserGraspScore,
|
|
|
GraspScorePercent: utils.DecimalToNumber(item.UserGraspScore),
|
|
|
}
|
|
|
rsp.StatisticData = GetStatisticData(header, item.StaticDataOrm, item.AchievementId)
|
|
|
rsp.ChanceTemplate = getTemplate(item.TemplateId)
|
...
|
...
|
@@ -153,7 +153,7 @@ func AchievementDetail(header *protocol.RequestHeader, request *protocol.Achieve |
|
|
Provider: user,
|
|
|
GraspScore: protocol.GraspScore{
|
|
|
GraspScore: score,
|
|
|
GraspScorePercent: score,
|
|
|
GraspScorePercent: utils.DecimalToNumber(score),
|
|
|
},
|
|
|
Type: t,
|
|
|
}
|
...
|
...
|
|