设置当前logo调整
This commit is contained in:
parent
0e4fe65d27
commit
c65b8f54a5
|
@ -186,6 +186,12 @@ func (l *UserLogoSetLogic) UserLogoSet(req *types.UserLogoSetReq, userinfo *auth
|
|||
logc.Errorf(l.ctx, "userMaterialInfo Metadata template_tag_id err:%+v", err)
|
||||
return err
|
||||
}
|
||||
|
||||
userMaterialVrsionData, userMaterialVersionEx := metadataMapOldUserMaterial["version"]
|
||||
if !userMaterialVersionEx {
|
||||
userMaterialVrsionData = ""
|
||||
}
|
||||
|
||||
userMaterialTemplateIdTagIds := userMaterialTemplateIdTagIdData.([]interface{})
|
||||
|
||||
userMaterialTemplateIdTagId := userMaterialTemplateIdTagIds[0].(string)
|
||||
|
@ -193,7 +199,8 @@ func (l *UserLogoSetLogic) UserLogoSet(req *types.UserLogoSetReq, userinfo *auth
|
|||
userMaterialTemplateTag := userMaterialTemplateTagData.(map[string]interface{})
|
||||
userMaterialTemplateTagIndex := userMaterialTemplateTag[userMaterialTemplateIdTagId]
|
||||
|
||||
templateTagSelected := make(map[string]interface{}, 3)
|
||||
templateTagSelected := make(map[string]interface{}, 4)
|
||||
templateTagSelected["version"] = userMaterialVrsionData
|
||||
templateTagSelected["color"] = userMaterialTemplateTagIndex
|
||||
templateTagSelected["template_tag"] = userMaterialTemplateIdTagId
|
||||
templateTagSelected["selected_index"] = 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user