作者 yangfu

权限修改

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