Update account.go

This commit is contained in:
JNG 2026-01-07 09:14:42 +08:00
parent 38eaf75363
commit 6149b83ce4

View File

@ -614,7 +614,7 @@ func (a *AccountFieeProvider) Info(ctx context.Context, in *account.InfoRequest)
var user *model.User
if err := model.DB.Where(&model.User{Domain: &in.Domain}).Preload("RealName").First(&user, in.ID).Error; err != nil {
logger.Error(err)
return nil, err
return nil, errors.New(m.Not_Found_Artist)
}
realName := user.RealName
if realName == nil {