作者 yangfu

权限修改

... ... @@ -904,9 +904,9 @@ func ChanceCalculateDefautlScore(header *protocol.RequestHeader) (rsp protocol.S
}
basic := scoreConfig.BasicScore.Min
sum += scoreConfig.BasicScore.Max * scoreConfig.DiscoveryScore.BasicFactor
extral := scoreConfig.BasicScore.Min
extral := scoreConfig.ExtraScore.Min
sum += scoreConfig.ExtraScore.Max * scoreConfig.DiscoveryScore.ExtraFactor
value := scoreConfig.BasicScore.Min
value := scoreConfig.ValueScore.Min
sum += scoreConfig.ValueScore.Max * scoreConfig.DiscoveryScore.ValueFactor
rsp.DiscoveryScore = basic*scoreConfig.DiscoveryScore.BasicFactor + extral*scoreConfig.DiscoveryScore.ExtraFactor + value*scoreConfig.DiscoveryScore.ValueFactor
rsp.DiscoveryScorePercent = int((rsp.DiscoveryScore / sum) * 100)
... ...