根据比赛调整内容

This commit is contained in:
suntao committed 2020-12-16 13:47:20 +08:00
1 parent 70abe45eb0
commit e8b6418aa6
3 files changed
+10 -2

No files matched your search

+6 -1
View File
@@ -59,6 +59,11 @@ namespace OnlineUserPool.Hander
// targetData._Power.ToString(),
// targetData._Cadence.ToString()
//};
var weightKg = 0.0D;
if(targetData._Power >= 0)
{
weightKg = Math.Round(targetData._Power / item.Weight, 2);
}
var info = new MsgModel()
{
exit = item.End,
@@ -72,7 +77,7 @@ namespace OnlineUserPool.Hander
CommandType = 1,
IsVirtual = true,
Speed = targetData._Speed,
WeightKg = Math.Round(targetData._Power / item.Weight, 2),
WeightKg = weightKg,
PreDistance = item.GetPreDistance()
};
msgModels.Add(info);