feat: 更新计算价格与位数同步

This commit is contained in:
han0
2025-05-26 17:44:09 +08:00
parent 463f9256fa
commit d752fe17c8

View File

@@ -201,7 +201,7 @@ class Calculator:
if sum(prices) == 0:
return 0
result = sum(prices) / sum([self.weight_ftb, self.weight_ss, self.weight_fhb, self.weight_network, self.weight_survey])
result = round(result, round_dit)
result = self.round_method(result, self.round_bit)
return result
def _get_recommend_price(self, round_by=10):