熱門新歌(國、台)SQL修正
This commit is contained in:
parent
f3bfe3eb1a
commit
8ea87307f1
@ -62,8 +62,8 @@ namespace DualScreenDemo
|
|||||||
isOnOrderedSongsPage = false;
|
isOnOrderedSongsPage = false;
|
||||||
|
|
||||||
int songLimit = ReadHotSongLimit();
|
int songLimit = ReadHotSongLimit();
|
||||||
|
string query = $"SELECT * FROM SongLibrary WHERE `語別` = '國語' ORDER BY `點播次數` DESC LIMIT {songLimit}";
|
||||||
guoYuSongs = GetSongsByCategory("國語", songLimit);
|
var guoYuSongs = SearchSongs_Mysql(query);
|
||||||
UpdateSongList(guoYuSongs);
|
UpdateSongList(guoYuSongs);
|
||||||
|
|
||||||
SetButtonsVisibility();
|
SetButtonsVisibility();
|
||||||
|
@ -9,7 +9,7 @@ namespace DualScreenDemo
|
|||||||
|
|
||||||
int songLimit = ReadHotSongLimit();
|
int songLimit = ReadHotSongLimit();
|
||||||
|
|
||||||
string query = $"SELECT * FROM SongLibrary WHERE `語別` = '國語' ORDER BY `新增日期` DESC LIMIT {songLimit}";
|
string query = $"SELECT * FROM SongLibrary WHERE `語別` = '國語' ORDER BY `新增日期` DESC ,`點播次數` DESC LIMIT {songLimit}";
|
||||||
var selectedSongs = PrimaryForm.Instance.SearchSongs_Mysql(query);
|
var selectedSongs = PrimaryForm.Instance.SearchSongs_Mysql(query);
|
||||||
|
|
||||||
currentPage = 0;
|
currentPage = 0;
|
||||||
|
@ -9,7 +9,7 @@ namespace DualScreenDemo
|
|||||||
|
|
||||||
int songLimit = ReadHotSongLimit();
|
int songLimit = ReadHotSongLimit();
|
||||||
|
|
||||||
string query = $"SELECT * FROM SongLibrary WHERE `語別` = '台語' ORDER BY `新增日期` DESC LIMIT {songLimit}";
|
string query = $"SELECT * FROM SongLibrary WHERE `語別` = '台語' ORDER BY `新增日期` DESC ,`點播次數` DESC LIMIT {songLimit}";
|
||||||
var selectedSongs = SearchSongs_Mysql(query);
|
var selectedSongs = SearchSongs_Mysql(query);
|
||||||
|
|
||||||
currentPage = 0;
|
currentPage = 0;
|
||||||
|
@ -182,20 +182,13 @@ namespace DualScreenDemo
|
|||||||
public List<SongData> currentSongList;
|
public List<SongData> currentSongList;
|
||||||
public List<Artist> currentArtistList;
|
public List<Artist> currentArtistList;
|
||||||
public List<SongData> publicSongList;
|
public List<SongData> publicSongList;
|
||||||
private List<SongData> guoYuSongs;
|
//private List<SongData> guoYuSongs;
|
||||||
private List<SongData> guoYuSongs2;
|
//private List<SongData> guoYuSongs2;
|
||||||
private List<SongData> taiYuSongs2;
|
//private List<SongData> taiYuSongs2;
|
||||||
private List<SongData> yueYuSongs2;
|
//private List<SongData> yueYuSongs2;
|
||||||
private List<SongData> yingWenSongs2;
|
//private List<SongData> yingWenSongs2;
|
||||||
private List<SongData> riYuSongs2;
|
//private List<SongData> riYuSongs2;
|
||||||
private List<SongData> hanYuSongs2;
|
//private List<SongData> hanYuSongs2;
|
||||||
//private List<SongData> loveDuetSongs;
|
|
||||||
//private List<SongData> talentShowSongs;
|
|
||||||
//private List<SongData> medleyDanceSongs;
|
|
||||||
//private List<SongData> ninetiesSongs;
|
|
||||||
//private List<SongData> nostalgicSongs;
|
|
||||||
//private List<SongData> chinaSongs;
|
|
||||||
//private List<SongData> vietnameseSongs;
|
|
||||||
public static List<SongData> userRequestedSongs;
|
public static List<SongData> userRequestedSongs;
|
||||||
public static List<SongData> playedSongsHistory;
|
public static List<SongData> playedSongsHistory;
|
||||||
public static List<PlayState> playStates;
|
public static List<PlayState> playStates;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user