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

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/670
This commit is contained in:
chenhao 2024-07-31 21:59:54 +08:00
commit 0a8005e7da
1 changed files with 2 additions and 2 deletions

View File

@ -4102,8 +4102,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)