添加logo_selected固定选择默认的
This commit is contained in:
parent
a340da2359
commit
904de02083
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user