fix: database upgrade cannot process single path avatar

This commit is contained in:
EggLink
2025-05-01 19:58:51 +08:00
committed by GitHub
parent dac1ebff5b
commit 6b4da24e9d

View File

@@ -309,8 +309,8 @@ public class EntryPoint
foreach (var info in avatar.PathInfoes)
{
if (info.Value.PathId == 0)
info.Value.PathId = info.Key;
formalAvatar.PathInfos.Add(info.Key, new PathInfo(info.Value.PathId)
info.Value.PathId = avatar.AvatarId;
formalAvatar.PathInfos.Add(info.Value.PathId, new PathInfo(info.Value.PathId)
{
PathId = info.Value.PathId,
EquipId = info.Value.EquipId,
@@ -379,4 +379,4 @@ public class EntryPoint
DanhengConnection.LogMap.TryAdd(value, name);
}
}
}
}