正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -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) |
-
请 注册 或 登录 后发表评论