From 4caefe30250bb547b29959add6f9095ff4649763 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 25 Jul 2024 20:29:08 +0800 Subject: [PATCH] 1 --- app/mix/service/apiservice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index 8e32b2ed..388cfce7 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -3656,7 +3656,7 @@ func (s *Service) ApiCreateRavenIQTest(ctx *gin.Context, req *Raven_IQ_testproto // 计算智商 totalScoreLowerBound := list[scoreBlockIdx] - totalScoreUpperBound := list[scoreBlockIdx+1] + totalScoreUpperBound := list[scoreBlockIdx+1] - 1 IQLowerBound := float64(IQResultMpcfg.Map[IQBlockId].IQLowerBound) IQUpperBound := float64(IQResultMpcfg.Map[IQBlockId].IQUpperBound) IQ := int64(math.Ceil(float64(totalScore-totalScoreLowerBound)/float64(totalScoreUpperBound-totalScoreLowerBound)*(IQUpperBound-IQLowerBound) + IQLowerBound))