比赛分享标题&tcp微调

This commit is contained in:
lishuo 2021-12-29 19:06:00 +08:00
parent 6055b2010b
commit 088ab9a2b8
3 changed files with 21 additions and 8 deletions

View File

@ -3217,6 +3217,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 3622b843b296d2e46ba722beb139f040, type: 3}
m_Name:
m_EditorClassIdentifier:
newNav: {fileID: 0}
--- !u!114 &8647795171597459386
MonoBehaviour:
m_ObjectHideFlags: 0
@ -3229,6 +3230,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 3622b843b296d2e46ba722beb139f040, type: 3}
m_Name:
m_EditorClassIdentifier:
newNav: {fileID: 0}
--- !u!1 &6558498177537283755
GameObject:
m_ObjectHideFlags: 0
@ -7614,6 +7616,16 @@ PrefabInstance:
propertyPath: m_FontData.m_Alignment
value: 6
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_SourcePrefab: {fileID: 100100000, guid: 3bf4a1387517769468dd74f58f7dc777, type: 3}
--- !u!224 &978563753921066300 stripped

View File

@ -235,9 +235,9 @@ namespace Assets.Scenes.Ride.Scripts
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
{
@ -249,7 +249,7 @@ namespace Assets.Scenes.Ride.Scripts
{
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
{

View File

@ -457,13 +457,13 @@ namespace Assets.Scenes.Ride.Scripts
foreach (var user in onlineUsers)
{
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)
{
var route = App.RouteList.Where(c => c.Id == item.RouteId).FirstOrDefault();
if (route != null)
{
user.RouteName = route.Name;
}
user.LastActiveTime = DateTime.Now;
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);
//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();