优化
This commit is contained in:
parent
e8a2778db0
commit
afc26eb0a1
|
@ -187,10 +187,10 @@ func (l *UserLogoSetLogic) UserLogoSet(req *types.UserLogoSetReq, userinfo *auth
|
|||
return err
|
||||
}
|
||||
|
||||
var templateTagSelectedVersion string
|
||||
var userMaterialTemplateTagSelectedVersion string
|
||||
userMaterialVersionData, userMaterialVersionEx := metadataMapOldUserMaterial["version"]
|
||||
if userMaterialVersionEx {
|
||||
templateTagSelectedVersion = userMaterialVersionData.(string)
|
||||
userMaterialTemplateTagSelectedVersion = userMaterialVersionData.(string)
|
||||
}
|
||||
|
||||
userMaterialTemplateIdTagIds := userMaterialTemplateIdTagIdData.([]interface{})
|
||||
|
@ -201,7 +201,7 @@ func (l *UserLogoSetLogic) UserLogoSet(req *types.UserLogoSetReq, userinfo *auth
|
|||
userMaterialTemplateTagIndex := userMaterialTemplateTag[userMaterialTemplateIdTagId]
|
||||
|
||||
templateTagSelected := make(map[string]interface{}, 4)
|
||||
templateTagSelected["version"] = templateTagSelectedVersion
|
||||
templateTagSelected["version"] = userMaterialTemplateTagSelectedVersion
|
||||
templateTagSelected["color"] = userMaterialTemplateTagIndex
|
||||
templateTagSelected["template_tag"] = userMaterialTemplateIdTagId
|
||||
templateTagSelected["selected_index"] = 0
|
||||
|
|
|
@ -112,10 +112,10 @@ func (l *UserLogoTemplateTagSetLogic) UserLogoTemplateTagSet(req *types.UserLogo
|
|||
return err
|
||||
}
|
||||
|
||||
var templateTagSelectedVersion string
|
||||
var userMaterialTemplateTagSelectedVersion string
|
||||
userMaterialVersionData, userMaterialVersionEx := metadataMapOldUserMaterial["version"]
|
||||
if userMaterialVersionEx {
|
||||
templateTagSelectedVersion = userMaterialVersionData.(string)
|
||||
userMaterialTemplateTagSelectedVersion = userMaterialVersionData.(string)
|
||||
}
|
||||
|
||||
userMaterialTemplateTag := userMaterialTemplateTagData.(map[string]interface{})
|
||||
|
@ -128,7 +128,7 @@ func (l *UserLogoTemplateTagSetLogic) UserLogoTemplateTagSet(req *types.UserLogo
|
|||
}
|
||||
|
||||
templateTagSelected := make(map[string]interface{}, 4)
|
||||
templateTagSelected["version"] = templateTagSelectedVersion
|
||||
templateTagSelected["version"] = userMaterialTemplateTagSelectedVersion
|
||||
templateTagSelected["color"] = userMaterialTemplateTagIndex
|
||||
templateTagSelected["template_tag"] = req.TemplateTag
|
||||
templateTagSelected["selected_index"] = req.TemplateTagColorIndex
|
||||
|
|
Loading…
Reference in New Issue
Block a user