Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop
This commit is contained in:
commit
4cacf2c16d
|
@ -187,9 +187,10 @@ func (l *UserLogoSetLogic) UserLogoSet(req *types.UserLogoSetReq, userinfo *auth
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
userMaterialVrsionData, userMaterialVersionEx := metadataMapOldUserMaterial["version"]
|
var templateTagSelectedVersion string
|
||||||
if !userMaterialVersionEx {
|
userMaterialVersionData, userMaterialVersionEx := metadataMapOldUserMaterial["version"]
|
||||||
userMaterialVrsionData = ""
|
if userMaterialVersionEx {
|
||||||
|
templateTagSelectedVersion = userMaterialVersionData.(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
userMaterialTemplateIdTagIds := userMaterialTemplateIdTagIdData.([]interface{})
|
userMaterialTemplateIdTagIds := userMaterialTemplateIdTagIdData.([]interface{})
|
||||||
|
@ -200,7 +201,7 @@ func (l *UserLogoSetLogic) UserLogoSet(req *types.UserLogoSetReq, userinfo *auth
|
||||||
userMaterialTemplateTagIndex := userMaterialTemplateTag[userMaterialTemplateIdTagId]
|
userMaterialTemplateTagIndex := userMaterialTemplateTag[userMaterialTemplateIdTagId]
|
||||||
|
|
||||||
templateTagSelected := make(map[string]interface{}, 4)
|
templateTagSelected := make(map[string]interface{}, 4)
|
||||||
templateTagSelected["version"] = userMaterialVrsionData
|
templateTagSelected["version"] = templateTagSelectedVersion
|
||||||
templateTagSelected["color"] = userMaterialTemplateTagIndex
|
templateTagSelected["color"] = userMaterialTemplateTagIndex
|
||||||
templateTagSelected["template_tag"] = userMaterialTemplateIdTagId
|
templateTagSelected["template_tag"] = userMaterialTemplateIdTagId
|
||||||
templateTagSelected["selected_index"] = 0
|
templateTagSelected["selected_index"] = 0
|
||||||
|
|
|
@ -112,6 +112,12 @@ func (l *UserLogoTemplateTagSetLogic) UserLogoTemplateTagSet(req *types.UserLogo
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var templateTagSelectedVersion string
|
||||||
|
userMaterialVersionData, userMaterialVersionEx := metadataMapOldUserMaterial["version"]
|
||||||
|
if userMaterialVersionEx {
|
||||||
|
templateTagSelectedVersion = userMaterialVersionData.(string)
|
||||||
|
}
|
||||||
|
|
||||||
userMaterialTemplateTag := userMaterialTemplateTagData.(map[string]interface{})
|
userMaterialTemplateTag := userMaterialTemplateTagData.(map[string]interface{})
|
||||||
userMaterialTemplateTagIndex := userMaterialTemplateTag[req.TemplateTag]
|
userMaterialTemplateTagIndex := userMaterialTemplateTag[req.TemplateTag]
|
||||||
|
|
||||||
|
@ -121,7 +127,8 @@ func (l *UserLogoTemplateTagSetLogic) UserLogoTemplateTagSet(req *types.UserLogo
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
templateTagSelected := make(map[string]interface{}, 3)
|
templateTagSelected := make(map[string]interface{}, 4)
|
||||||
|
templateTagSelected["version"] = templateTagSelectedVersion
|
||||||
templateTagSelected["color"] = userMaterialTemplateTagIndex
|
templateTagSelected["color"] = userMaterialTemplateTagIndex
|
||||||
templateTagSelected["template_tag"] = req.TemplateTag
|
templateTagSelected["template_tag"] = req.TemplateTag
|
||||||
templateTagSelected["selected_index"] = req.TemplateTagColorIndex
|
templateTagSelected["selected_index"] = req.TemplateTagColorIndex
|
||||||
|
|
Loading…
Reference in New Issue
Block a user