From b4e6c2532bff39f68eabcff8eb030c1fd5c26db9 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Wed, 31 Jul 2024 21:59:39 +0800 Subject: [PATCH] 1 --- app/mix/service/apiservice.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index 388cfce7..579501bd 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -3660,8 +3660,8 @@ func (s *Service) ApiCreateRavenIQTest(ctx *gin.Context, req *Raven_IQ_testproto 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)) - if IQ == 0 { - IQ = IQResultMpcfg.Map[IQBlockId].IQLowerBound + if IQ < 70 { + IQ = 70 } req.IQ = goproto.Int64(IQ)