From b263798557bcb1705e56446a1012635d28cdbad2 Mon Sep 17 00:00:00 2001 From: "allen.yan" Date: Tue, 29 Jul 2025 12:04:14 +0800 Subject: [PATCH] =?UTF-8?q?SongData=E4=BF=AE=E6=AD=A3=E7=89=A9=E4=BB=B6?= =?UTF-8?q?=E5=95=8F=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DBObj/SongData.cs | 9 ++++++--- Room.cs | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/DBObj/SongData.cs b/DBObj/SongData.cs index bb9bc94..5bab3cc 100644 --- a/DBObj/SongData.cs +++ b/DBObj/SongData.cs @@ -21,10 +21,13 @@ namespace DBObj { basic=new(songNumber,song,songSimplified,filename,humanVoice); A= new Artist(artistA, artistASimplified); - if(artistB!=null){ + if(!artistB.Equals("")){ B = new Artist(artistB, artistBSimplified); - } - isPublicSong = false; + } else + { + B = null; + } + isPublicSong = false; } public SongData(SongData value,PlayState s){ basic = value.getBasic(); diff --git a/Room.cs b/Room.cs index 9554393..0c62405 100644 --- a/Room.cs +++ b/Room.cs @@ -40,6 +40,7 @@ namespace DualScreenDemo if (db.open(query, parameters) && db.found()) { State = db.Field("status"); + if (State.Equals("maintai")) { State = "active"; } return State; } }