Merge pull request '1' (#664) from feat-IRONFANS-173-Robin into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/664
This commit is contained in:
chenhao 2024-07-31 15:58:29 +08:00
commit f6babbff70
1 changed files with 1 additions and 1 deletions

View File

@ -4082,7 +4082,7 @@ func (s *Service) ApiCreateRavenIQTest(ctx *gin.Context, req *Raven_IQ_testproto
// 计算智商 // 计算智商
totalScoreLowerBound := list[scoreBlockIdx] totalScoreLowerBound := list[scoreBlockIdx]
totalScoreUpperBound := list[scoreBlockIdx+1] totalScoreUpperBound := list[scoreBlockIdx+1] - 1
IQLowerBound := float64(IQResultMpcfg.Map[IQBlockId].IQLowerBound) IQLowerBound := float64(IQResultMpcfg.Map[IQBlockId].IQLowerBound)
IQUpperBound := float64(IQResultMpcfg.Map[IQBlockId].IQUpperBound) IQUpperBound := float64(IQResultMpcfg.Map[IQBlockId].IQUpperBound)
IQ := int64(math.Ceil(float64(totalScore-totalScoreLowerBound)/float64(totalScoreUpperBound-totalScoreLowerBound)*(IQUpperBound-IQLowerBound) + IQLowerBound)) IQ := int64(math.Ceil(float64(totalScore-totalScoreLowerBound)/float64(totalScoreUpperBound-totalScoreLowerBound)*(IQUpperBound-IQLowerBound) + IQLowerBound))