@@ -13,7 +13,7 @@ public static ClassicProfile ToClassicProfile(ProfileEntity profile)
1313 {
1414 return new ClassicProfile
1515 {
16- Username = profile . UserName ,
16+ Username = profile . AccountName ,
1717 Name = profile . Nickname ?? string . Empty ,
1818 Pronouns = profile . Pronouns ?? string . Empty ,
1919 Avatar = AssetToString ( profile . AvatarType , profile . AvatarText , profile . AvatarData ) ,
@@ -177,7 +177,7 @@ private static ClassicSocialLink ToClassicSocialLink(SocialLinkItemEntity s)
177177
178178 public static void UpdateProfileFromClassic ( ProfileEntity profile , ClassicProfile classic )
179179 {
180- profile . UserName = classic . Username ;
180+ profile . AccountName = classic . Username ;
181181 profile . Nickname = classic . Name ;
182182 profile . Pronouns = classic . Pronouns ;
183183
@@ -366,7 +366,7 @@ public static void UpdateProfileFromPatch(ProfileEntity profile, ClassicProfileP
366366 // 仅当字段不为 Null 时更新
367367 // 注意:如果前端传空字符串 "",这里会更新为空字符串,符合预期(清空字段)
368368
369- if ( patch . Username != null ) profile . UserName = patch . Username ;
369+ if ( patch . Username != null ) profile . AccountName = patch . Username ;
370370 if ( patch . Name != null ) profile . Nickname = patch . Name ;
371371 if ( patch . Pronouns != null ) profile . Pronouns = patch . Pronouns ;
372372
0 commit comments