From 779040ef160bc4688a69fd8eccfc58b293785945 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期一, 29 三月 2021 09:09:50 +0800 Subject: [PATCH] 合并嘉乐可视对讲 --- HDL_ON/UI/UI2/1-HomePage/HomePage.cs | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs index 3740382..ea5aac2 100644 --- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs +++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs @@ -467,12 +467,18 @@ try { int index = 0; - foreach (var function in FunctionList.List.GetDeviceFunctionList()) + var list = FunctionList.List.GetDeviceFunctionList(); + foreach (var function in list) { //闊充箰妯″潡鏈変富浠庡叧绯伙紝闇�瑕佺壒娈婂鐞� if (function.Spk_Prefix == FunctionCategory.Music) { - var music = function as Music.A31MusicModel; + //var music = function as Music.A31MusicModel; + var music = Music.A31MusicModel.A31MusicModelList.Find((obj) => obj.sid == function.sid); + if (music == null) + { + continue; + } if (music.ServerClientType == -1) { continue; -- Gitblit v1.8.0