資料庫調整/設置點-聲控燈控
This commit is contained in:
parent
c4b8b82b64
commit
eb1db3c8c8
@ -254,7 +254,7 @@ namespace DualScreenDemo
|
|||||||
}
|
}
|
||||||
|
|
||||||
private string SetQueryforSQL(string contains){
|
private string SetQueryforSQL(string contains){
|
||||||
string query = $"SELECT * FROM song_library_cache WHERE situations LIKE '%{contains}%' ORDER BY `song_id` DESC";
|
string query = $"SELECT * FROM song_library_cache WHERE song_category LIKE '%{contains}%' ORDER BY `song_id` DESC";
|
||||||
return query;
|
return query;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -760,7 +760,10 @@ namespace DualScreenDemo
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 可以取得 燈控/聲控 的位置
|
||||||
var songToPlay = currentPlaylist[currentSongIndex];
|
var songToPlay = currentPlaylist[currentSongIndex];
|
||||||
|
|
||||||
|
// pathToPlay 需要調整
|
||||||
var pathToPlay = File.Exists(songToPlay.SongFilePathHost1) ? songToPlay.SongFilePathHost1 : songToPlay.SongFilePathHost2;
|
var pathToPlay = File.Exists(songToPlay.SongFilePathHost1) ? songToPlay.SongFilePathHost1 : songToPlay.SongFilePathHost2;
|
||||||
|
|
||||||
// 若兩個 host 上都找不到檔案就直接結束
|
// 若兩個 host 上都找不到檔案就直接結束
|
||||||
|
Loading…
x
Reference in New Issue
Block a user