forked from powerfun/udpservice
tcp传输增加心率踏频等
This commit is contained in:
parent
c380654041
commit
f33dd4fa2e
@ -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>
|
||||
@ -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)}";
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
BIN
lib/TurfCS.dll
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user