Send VerUpNo1s dynamically
This commit is contained in:
parent
ff1baca330
commit
f48863150d
@ -36,9 +36,8 @@ public class InitialDataCheckController : BaseController<InitialDataCheckControl
|
||||
FlagCalculator.GetBitArrayFromIds(defaultSongList, songIdMax, Logger);
|
||||
|
||||
var defaultSongWithUraList = gameDataService.GetMusicWithUraList();
|
||||
var enabledUraMusicList = defaultSongWithUraList.Except(lockedSongsList);
|
||||
var uraReleaseBit =
|
||||
FlagCalculator.GetBitArrayFromIds(enabledUraMusicList, songIdMax, Logger);
|
||||
FlagCalculator.GetBitArrayFromIds(defaultSongWithUraList, songIdMax, Logger);
|
||||
|
||||
var response = new InitialdatacheckResponse
|
||||
{
|
||||
@ -62,12 +61,13 @@ public class InitialDataCheckController : BaseController<InitialDataCheckControl
|
||||
response.AryVerupNoData1s.AddRange(aryVerUp);
|
||||
|
||||
var danData = new List<InitialdatacheckResponse.VerupNoData2.InformationData>();
|
||||
for (var danId = Constants.MIN_DAN_ID; danId <= Constants.MAX_DAN_ID; danId++)
|
||||
var danDataDictionary = gameDataService.GetDanDataDictionary();
|
||||
foreach (var danId in danDataDictionary.Keys)
|
||||
{
|
||||
gameDataService.GetDanDataDictionary().TryGetValue((uint)danId, out var odaiData);
|
||||
gameDataService.GetDanDataDictionary().TryGetValue(danId, out var odaiData);
|
||||
danData.Add(new InitialdatacheckResponse.VerupNoData2.InformationData
|
||||
{
|
||||
InfoId = (uint)danId,
|
||||
InfoId = danId,
|
||||
VerupNo = odaiData?.VerupNo ?? 1
|
||||
});
|
||||
}
|
||||
|
@ -79,10 +79,24 @@ public class PlayResultController : BaseController<PlayResultController>
|
||||
|
||||
var bestData = await songBestDatumService.GetAllSongBestData(request.BaidConf);
|
||||
|
||||
// gameDataService.GetFolderDictionary().TryGetValue(9, out var folder9Data);
|
||||
|
||||
// var folder9Songs = new List<uint>();
|
||||
//
|
||||
// if (folder9Data is not null)
|
||||
// {
|
||||
// folder9Songs.AddRange(folder9Data.SongNoes);
|
||||
// }
|
||||
|
||||
for (var songNumber = 0; songNumber < playResultData.AryStageInfoes.Count; songNumber++)
|
||||
{
|
||||
var stageData = playResultData.AryStageInfoes[songNumber];
|
||||
|
||||
// if (folder9Songs.Contains(stageData.SongNo))
|
||||
// {
|
||||
// continue;
|
||||
// }
|
||||
|
||||
if (stageData.IsSkipUse)
|
||||
{
|
||||
await UpdatePlayData(request, songNumber, stageData, lastPlayDatetime);
|
||||
|
Loading…
Reference in New Issue
Block a user