Merge branch 'feature-userinfo-daiyb' into dev

This commit is contained in:
戴育兵 2026-01-07 10:08:50 +08:00
commit 4797a03196

View File

@ -409,10 +409,14 @@ func SyncAsAuth(artistUuid string) error {
if platformIDENUM == cast.PlatformIDENUM_UNKNOWN { if platformIDENUM == cast.PlatformIDENUM_UNKNOWN {
continue continue
} }
asID := v.Id
if platformIDENUM == cast.PlatformIDENUM_BULESKY && asID == "" {
asID = v.Username
}
authReq.Data = append(authReq.Data, &cast.UpdateOAuthReq_Info{ authReq.Data = append(authReq.Data, &cast.UpdateOAuthReq_Info{
ArtistUuid: artistUuid, ArtistUuid: artistUuid,
PlatformID: platformIDENUM, PlatformID: platformIDENUM,
AsID: v.Id, AsID: asID,
PlatformUserName: v.Username, PlatformUserName: v.Username,
AutInfo: string(asInfoB), AutInfo: string(asInfoB),
}) })