添加logo_selected固定选择默认的

This commit is contained in:
eson 2023-11-17 11:03:19 +08:00
parent a340da2359
commit 904de02083

View File

@ -111,6 +111,14 @@ func (m *FsUserInfoModel) GetProfile(ctx context.Context, pkey string, userId in
return m.getDefaultProfile(ctx, tname)
}
if _, ok := info["logo_selected"]; !ok {
defaultUserInfo, err := m.getDefaultProfile(ctx, tname)
if err != nil {
return nil, err
}
info["logo_selected"] = defaultUserInfo["logo_selected"]
}
return info, nil
}