比赛分享标题&tcp微调
This commit is contained in:
parent
6055b2010b
commit
088ab9a2b8
@ -3217,6 +3217,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 3622b843b296d2e46ba722beb139f040, type: 3}
|
m_Script: {fileID: 11500000, guid: 3622b843b296d2e46ba722beb139f040, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
newNav: {fileID: 0}
|
||||||
--- !u!114 &8647795171597459386
|
--- !u!114 &8647795171597459386
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -3229,6 +3230,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 3622b843b296d2e46ba722beb139f040, type: 3}
|
m_Script: {fileID: 11500000, guid: 3622b843b296d2e46ba722beb139f040, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
newNav: {fileID: 0}
|
||||||
--- !u!1 &6558498177537283755
|
--- !u!1 &6558498177537283755
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -7614,6 +7616,16 @@ PrefabInstance:
|
|||||||
propertyPath: m_FontData.m_Alignment
|
propertyPath: m_FontData.m_Alignment
|
||||||
value: 6
|
value: 6
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 6582060407730122472, guid: 3bf4a1387517769468dd74f58f7dc777,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_FontData.m_VerticalOverflow
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 6582060407730122472, guid: 3bf4a1387517769468dd74f58f7dc777,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_FontData.m_HorizontalOverflow
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 3bf4a1387517769468dd74f58f7dc777, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 3bf4a1387517769468dd74f58f7dc777, type: 3}
|
||||||
--- !u!224 &978563753921066300 stripped
|
--- !u!224 &978563753921066300 stripped
|
||||||
|
|||||||
@ -235,9 +235,9 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
|
|
||||||
private void ShareWechat(BaseEventData baseEventData)
|
private void ShareWechat(BaseEventData baseEventData)
|
||||||
{
|
{
|
||||||
if (App.weChatController.IsWeChatAppInstalled())
|
if (!App.weChatController.IsWeChatAppInstalled())
|
||||||
{
|
{
|
||||||
App.weChatController.ShareWebpageToWX(0, $"{App.CurrentUser.WebHost}Mine/MatchPreview?id={cyclingController.competitionId}&Token={App.CurrentUser.cookie}", cyclingController.competition.NickName, "By " + App.CurrentUser.Nickname, null);
|
App.weChatController.ShareWebpageToWX(0, $"{App.CurrentUser.WebHost}Mine/MatchPreview?id={cyclingController.competitionId}&Token={App.CurrentUser.cookie}", cyclingController.competition.Title, "By " + App.CurrentUser.Nickname, null);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -249,7 +249,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
{
|
{
|
||||||
if (App.weChatController.IsWeChatAppInstalled())
|
if (App.weChatController.IsWeChatAppInstalled())
|
||||||
{
|
{
|
||||||
App.weChatController.ShareWebpageToWX(1, $"{App.CurrentUser.WebHost}Mine/MatchPreview?id={cyclingController.competitionId}&Token={App.CurrentUser.cookie}", cyclingController.competition.NickName, "By " + App.CurrentUser.Nickname,null);
|
App.weChatController.ShareWebpageToWX(1, $"{App.CurrentUser.WebHost}Mine/MatchPreview?id={cyclingController.competitionId}&Token={App.CurrentUser.cookie}", cyclingController.competition.Title, "By " + App.CurrentUser.Nickname,null);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -457,13 +457,13 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
foreach (var user in onlineUsers)
|
foreach (var user in onlineUsers)
|
||||||
{
|
{
|
||||||
var item = msgs.FirstOrDefault(u => u.MemberId == user.Id);
|
var item = msgs.FirstOrDefault(u => u.MemberId == user.Id);
|
||||||
var route = App.RouteList.Where(c => c.Id == item.RouteId).FirstOrDefault();
|
|
||||||
if (route != null)
|
|
||||||
{
|
|
||||||
user.RouteName = route.Name;
|
|
||||||
}
|
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
|
var route = App.RouteList.Where(c => c.Id == item.RouteId).FirstOrDefault();
|
||||||
|
if (route != null)
|
||||||
|
{
|
||||||
|
user.RouteName = route.Name;
|
||||||
|
}
|
||||||
user.LastActiveTime = DateTime.Now;
|
user.LastActiveTime = DateTime.Now;
|
||||||
user.RouteId = item.RouteId;
|
user.RouteId = item.RouteId;
|
||||||
|
|
||||||
@ -518,6 +518,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
//去除自己的数据和命令包
|
//去除自己的数据和命令包
|
||||||
//mes.RemoveAll(item => item.MemberId == App.CurrentUser.Id || item.Point[0] == 0);
|
//mes.RemoveAll(item => item.MemberId == App.CurrentUser.Id || item.Point[0] == 0);
|
||||||
//list.RemoveAll(item => item.Point[0] == 0 && item.Point[1] == 0);
|
//list.RemoveAll(item => item.Point[0] == 0 && item.Point[1] == 0);
|
||||||
|
list.RemoveAll(item => item.Point[0] == null || item.Point[1] == null);
|
||||||
//去除重复数据
|
//去除重复数据
|
||||||
list = list.Distinct(new OlineUserComparer()).ToList();
|
list = list.Distinct(new OlineUserComparer()).ToList();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user