From d44d009da78f96fe50e6dc7c1883e79ffb1aff58 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期五, 18 三月 2022 16:42:01 +0800 Subject: [PATCH] 2022=03-18-01 --- SiriIntents/SiriIntents.csproj | 1 + HDL_ON/Entity/Function/Function.cs | 21 ++++++++++++++++++++- HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs | 10 ++++++++-- HDL-ON_iOS/HDL-ON_iOS.csproj | 1 + SiriIntentsUI/SiriIntentsUI.csproj | 1 + HDL_ON/UI/UI2/FuntionControlView/Music/MusicMain.cs | 2 +- 6 files changed, 32 insertions(+), 4 deletions(-) diff --git a/HDL-ON_iOS/HDL-ON_iOS.csproj b/HDL-ON_iOS/HDL-ON_iOS.csproj index 3f3bce7..77132fa 100644 --- a/HDL-ON_iOS/HDL-ON_iOS.csproj +++ b/HDL-ON_iOS/HDL-ON_iOS.csproj @@ -59,6 +59,7 @@ <MtouchEnableSGenConc>false</MtouchEnableSGenConc> <CodesignEntitlements>Entitlements.plist</CodesignEntitlements> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> +<CodesignProvision>OnPro220307-2-Dev</CodesignProvision> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' "> <DebugType>none</DebugType> diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs index b64d1e6..c6af2de 100644 --- a/HDL_ON/Entity/Function/Function.cs +++ b/HDL_ON/Entity/Function/Function.cs @@ -112,12 +112,31 @@ public string GetAttrState(string key) { var attrState = attributes.Find((s) => s.key == key.ToString()); - if (attrState == null || string.IsNullOrEmpty(attrState.state)) + if (attrState == null) { return "0"; } + if (string.IsNullOrEmpty(attrState.state)) + { + return GetOriginalState(key); + } return attrState.state; } + + /// <summary> + /// 鑾峰彇鍒濆鐘舵�� + /// </summary> + /// <param name="key"></param> + /// <returns></returns> + public string GetOriginalState(string key) + { + var originalState = status.Find((s) => s.key == key.ToString()); + if (originalState == null || string.IsNullOrEmpty(originalState.value)) + { + return "0"; + } + return originalState.value; + } /// <summary> /// 璁剧疆灞炴�х姸鎬� /// </summary> diff --git a/HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs index a6f396a..7fed773 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs @@ -92,7 +92,8 @@ { string modeValueString = string.Empty; string msg = Language.StringByID(StringId.switchTo); - switch (A31MusicModel.Current.functionMusic.GetAttrState(KeyProperty.mode)) + string modeKeyValue = A31MusicModel.Current.functionMusic.GetAttrState(KeyProperty.mode); + switch (modeKeyValue) { //list_cycle鍒楄〃寰幆锛宻ingle_cycle鍗曟洸寰幆锛宺andom闅忔満鎾斁; case ValueProperty.list_cycle: @@ -106,6 +107,11 @@ msg += Language.StringByID(StringId.randomMode); break; case ValueProperty.random: + modeValueString = ValueProperty.list_cycle; + playView.playOrderBtn.UnSelectedImagePath = "MusicIcon/list.png"; + msg += Language.StringByID(StringId.listMode); + break; + default: modeValueString = ValueProperty.list_cycle; playView.playOrderBtn.UnSelectedImagePath = "MusicIcon/list.png"; msg += Language.StringByID(StringId.listMode); @@ -245,7 +251,7 @@ if (playView.playBtn.IsSelected) { playView.playBtn.IsSelected = false; - status = ValueProperty.pause; + status = ValueProperty.off; } else { diff --git a/HDL_ON/UI/UI2/FuntionControlView/Music/MusicMain.cs b/HDL_ON/UI/UI2/FuntionControlView/Music/MusicMain.cs index 494f967..0556fea 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Music/MusicMain.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Music/MusicMain.cs @@ -245,7 +245,7 @@ if (musicView.playBtn.IsSelected) { musicView.playBtn.IsSelected = false; - status = ValueProperty.pause; + status = ValueProperty.off; } else { diff --git a/SiriIntents/SiriIntents.csproj b/SiriIntents/SiriIntents.csproj index a36210c..f33f658 100644 --- a/SiriIntents/SiriIntents.csproj +++ b/SiriIntents/SiriIntents.csproj @@ -28,6 +28,7 @@ <MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler> <DeviceSpecificBuild>false</DeviceSpecificBuild> <MtouchVerbosity></MtouchVerbosity> + <CodesignProvision>OnProSiri220307-2-Dev</CodesignProvision> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' "> <DebugType>pdbonly</DebugType> diff --git a/SiriIntentsUI/SiriIntentsUI.csproj b/SiriIntentsUI/SiriIntentsUI.csproj index da2da8b..324b36f 100644 --- a/SiriIntentsUI/SiriIntentsUI.csproj +++ b/SiriIntentsUI/SiriIntentsUI.csproj @@ -29,6 +29,7 @@ <DeviceSpecificBuild>false</DeviceSpecificBuild> <MtouchVerbosity></MtouchVerbosity> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> + <CodesignProvision>OnProSiriUI220307-2-Dev</CodesignProvision> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' "> <DebugType>pdbonly</DebugType> -- Gitblit v1.8.0