tcp传输增加心率踏频等

This commit is contained in:
lishuo 2021-08-12 12:26:43 +08:00
parent c380654041
commit f33dd4fa2e
4 changed files with 13 additions and 5 deletions

View File

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Host" value="http://192.168.0.97:5082/"/>
<add key="Host" value="https://wx.powerfun.com.cn/"/>
<add key="Top" value="0"/>
<add key="ShowVirtualUser" value="false"/>
<add key="Port" value="21000"/>
<add key="TcpPort" value="21001"/>
<add key="Port" value="11000"/>
<add key="TcpPort" value="11001"/>
</appSettings>
</configuration>

View File

@ -14,6 +14,10 @@ namespace OnlineUserPool.Model
public bool exit = false;
public double Speed { get; set; }
public double HeartRate { get; set; }
public double Power { get; set; }
public double Cadence { get; set; }
public int TotalTicks { get; set; }
///// <summary>
///// 需要展示的属性
///// </summary>
@ -42,6 +46,10 @@ namespace OnlineUserPool.Model
public string ToString(int v)
{
if (v == 2)
{
return $"{ RouteId },{ MemberId },{ string.Join(":", Point) },{ Convert.ToInt32(IsCompleted) },{ Speed },{ PreDistance },{ EndDistance },{ WeightKg },{ Competitionid },{ Convert.ToInt32(Saved)},{ Power} ,{ HeartRate},{ Cadence},{ TotalTicks}";
}
return $"{ RouteId },{ MemberId },{ string.Join(":", Point) },{ Convert.ToInt32(IsCompleted) },{ Speed },{ PreDistance },{ EndDistance },{ WeightKg },{ Competitionid },{ Convert.ToInt32(Saved)}";
}
}

View File

@ -349,7 +349,7 @@ namespace OnlineUserPool.ViewModels
{
//ddd = data2;
var temp = string.Join("|", list.Where(m => m.Competitionid == item.Competitionid).Select(m => m.ToString(1))) + "|";
var temp = string.Join("|", list.Where(m => m.Competitionid == item.Competitionid).Select(m => m.ToString(2))) + "|";
var watchList1 = string.Join('|', clients1.Where(c => c.IsWatch && c.Competitionid == item.Competitionid).Select(c => c.MemberId));
var strV21 = $"*l{{{ temp }}};w{{{ watchList1 }}}#";

BIN
lib/TurfCS.dll Normal file

Binary file not shown.