fix: savedb for player data

This commit is contained in:
Naruse
2025-06-17 18:06:26 +08:00
parent 6566c0040a
commit 6fbeb1d34d
2 changed files with 3 additions and 3 deletions

View File

@@ -14,6 +14,6 @@ public class LineupInfo
public string? Name { get; set; } public string? Name { get; set; }
public uint AstraMateId { get; set; } public uint AstraMateId { get; set; }
public bool IsUsingAstraMate { get; set; } public bool IsUsingAstraMate { get; set; }
public List<uint> AvatarIds { get; set; } = []; public List<int> AvatarIds { get; set; } = [];
public List<uint> ElfIds { get; set; } = []; public List<int> ElfIds { get; set; } = [];
} }

View File

@@ -21,10 +21,10 @@ public class PlayerData : BaseDatabaseDataHelper
public int PhonePendantId { get; set; } = 350005; public int PhonePendantId { get; set; } = 350005;
public int AssistantAvatarId { get; set; } = 101; public int AssistantAvatarId { get; set; } = 101;
public int BirthDay { get; set; } = 0; public int BirthDay { get; set; } = 0;
[SugarColumn(IsJson = true)] public List<int> ExBossMonster { get; set; } = [51016, 4021, 36112];
[SugarColumn(IsJson = true)] public WarshipAvatarData WarshipAvatar { get; set; } = new(); [SugarColumn(IsJson = true)] public WarshipAvatarData WarshipAvatar { get; set; } = new();
[SugarColumn(IsNullable = true)] public long LastActiveTime { get; set; } [SugarColumn(IsNullable = true)] public long LastActiveTime { get; set; }
[SugarColumn(IsJson = true)] public UltraEndless Abyss { get; set; } = new(); [SugarColumn(IsJson = true)] public UltraEndless Abyss { get; set; } = new();
public List<int> ExBossMonster { get; set; } = new List<int> { 51016, 4021, 36112 };
public long RegisterTime { get; set; } = Extensions.GetUnixSec(); public long RegisterTime { get; set; } = Extensions.GetUnixSec();
public static PlayerData? GetPlayerByUid(long uid) public static PlayerData? GetPlayerByUid(long uid)