Merge branch 'rel_fix' of https://github.com/na10xi27da/MaiBot into rel_fix

This commit is contained in:
meng_xi_pan
2025-04-03 15:28:15 +08:00

View File

@@ -182,7 +182,7 @@ class RelationshipManager:
level_num = 5 if relationship_value > 1000 else 0
return level_num
def ensure_float(elsf, value, person_id):
def ensure_float(self, value, person_id):
"""确保返回浮点数转换失败返回0.0"""
if isinstance(value, float):
return value