1
0
mirror of synced 2024-11-23 22:41:01 +01:00

Implemented soshina and one piece collabo win count, turn on more VerUpNo1s

This commit is contained in:
S-Sebb?? 2023-09-17 01:50:47 +08:00
parent c7c380fa0a
commit 9714bf222b
3 changed files with 28 additions and 2 deletions

View File

@ -26,6 +26,8 @@ public class GetTokenCountController : BaseController<GetTokenCountController>
var tokenDataDictionary = gameDataService.GetTokenDataDictionary();
tokenDataDictionary.TryGetValue("shopTokenId", out var shopTokenId);
tokenDataDictionary.TryGetValue("kaTokenId", out var kaTokenId);
tokenDataDictionary.TryGetValue("onePieceTokenId", out var onePieceTokenId);
tokenDataDictionary.TryGetValue("soshinaTokenId", out var soshinaTokenId);
user.ThrowIfNull($"User with baid {request.Baid} does not exist!");
var tokenCountDict = new Dictionary<uint, int>();
@ -69,6 +71,28 @@ public class GetTokenCountController : BaseController<GetTokenCountController>
TokenId = castedKaTokenId
});
}
if (onePieceTokenId > 0)
{
var castedOnePieceTokenId = (uint)onePieceTokenId;
tokenCountDict.TryAdd(castedOnePieceTokenId, 0);
response.AryTokenCountDatas.Add(new GetTokenCountResponse.TokenCountData
{
TokenCount = tokenCountDict[castedOnePieceTokenId],
TokenId = castedOnePieceTokenId
});
}
if (soshinaTokenId > 0)
{
var castedSoshinaTokenId = (uint)soshinaTokenId;
tokenCountDict.TryAdd(castedSoshinaTokenId, 0);
response.AryTokenCountDatas.Add(new GetTokenCountResponse.TokenCountData
{
TokenCount = tokenCountDict[castedSoshinaTokenId],
TokenId = castedSoshinaTokenId
});
}
user.TokenCountDict = JsonSerializer.Serialize(tokenCountDict);
await userDatumService.UpdateUserDatum(user);

View File

@ -31,7 +31,7 @@ public class InitialDataCheckController : BaseController<InitialDataCheckControl
var uraReleaseBit =
FlagCalculator.GetBitArrayFromIds(defaultSongWithUraList, songIdMax, Logger);
var verupNo1 = new uint[] { 2, 3, 4, 5, 6, 7, 8, 13, 104 };
var verupNo1 = new uint[] { 2, 3, 4, 5, 6, 7, 8, 13, 15, 24, 25, 26, 27, 28, 29, 30, 31, 104 };
var aryVerUp = verupNo1.Select(i => new InitialdatacheckResponse.VerupNoData1
{
MasterType = i,

View File

@ -1,4 +1,6 @@
{
"shopTokenId": -1,
"kaTokenId": -1
"kaTokenId": -1,
"onePieceTokenId": 100100,
"soshinaTokenId": 100200
}