fix
This commit is contained in:
@@ -339,7 +339,7 @@ func (l *GetProductDetailLogic) getRenderDefaultSize(productId int64, templateTa
|
||||
|
||||
// 获取对应模板标签颜色信息
|
||||
func (l *GetProductDetailLogic) GetTemplateTagColor(req *types.GetProductDetailReq, userinfo *auth.UserInfo) (resp types.TemplateTagColorInfo, err error) {
|
||||
if req.SelectColorIndex < 0 {
|
||||
if req.SelectedColorIndex < 0 {
|
||||
return types.TemplateTagColorInfo{}, errors.New("param selected_color_index is invalid")
|
||||
}
|
||||
//根据logo查询素材资源
|
||||
@@ -387,7 +387,7 @@ func (l *GetProductDetailLogic) GetTemplateTagColor(req *types.GetProductDetailR
|
||||
if !ok {
|
||||
return types.TemplateTagColorInfo{}, errors.New("the template tag is not found from this logo material`s metadata")
|
||||
}
|
||||
if req.SelectColorIndex >= len(colors) {
|
||||
if req.SelectedColorIndex >= len(colors) {
|
||||
return types.TemplateTagColorInfo{}, errors.New("select color index is out of range !!")
|
||||
}
|
||||
var templateTagGroups interface{}
|
||||
@@ -399,7 +399,7 @@ func (l *GetProductDetailLogic) GetTemplateTagColor(req *types.GetProductDetailR
|
||||
}
|
||||
return types.TemplateTagColorInfo{
|
||||
Colors: colors,
|
||||
SelectedColorIndex: req.SelectColorIndex,
|
||||
SelectedColorIndex: req.SelectedColorIndex,
|
||||
TemplateTagGroups: templateTagGroups,
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user