陈嘉乐
2021-01-22 604341e5ef254ef6d4164423a342efef897a2172
HDL_ON/Common/ApiUtlis.cs
@@ -161,10 +161,11 @@
                        }
                        if (FunctionList.List.GetDeviceFunctionList().Count > 0)
                        {
                            for (int i = 0; i < FunctionList.List.GetDeviceFunctionList().Count;)
                            {
                                var localFunction = FunctionList.List.GetDeviceFunctionList()[i];
                                if (localFunction.Spk_Prefix == FunctionCategory.Music)
                                if (localFunction.Spk_Prefix == FunctionCategory.Music|| string.IsNullOrEmpty(localFunction.Spk_Prefix))
                                {
                                    i++;
                                    continue;
@@ -191,6 +192,8 @@
                                    deviceList.list.Remove(newFunction);//操作完的数据清理掉,剩下的就是新增的功能
                                }
                            }
                        }
                        //处理剩下的新增功能
                        foreach (var newFunction in deviceList.list)