fix:重构合图模块

This commit is contained in:
Hiven 2023-08-17 11:29:32 +08:00
parent 7afb089f0d
commit 69030d31de
2 changed files with 1 additions and 12 deletions

View File

@ -4,9 +4,6 @@ import (
"testing"
)
// var configFile = flag.String("f", "etc/home-user-auth.yaml", "the config file")
func TestMain(t *testing.T) {
// log.Println(model.RawFieldNames[FsCanteenType]())
main()
}

View File

@ -92,15 +92,6 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq
return nil, err
}
var groupOptions map[string]interface{}
if productTemplateV2Info.GroupOptions != nil {
err = json.Unmarshal([]byte(*productTemplateV2Info.GroupOptions), &groupOptions)
if err != nil {
logx.Error(err)
return nil, err
}
}
var materialList []interface{}
if productTemplateV2Info.TemplateInfo != nil {
var templateInfo map[string]interface{}
@ -111,6 +102,7 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq
return nil, err
}
materialList = templateInfo["materialList"].([]interface{})
groupOptions = templateInfo["groupOptions"].(map[string]interface{})
}
var moduleDataMap = make(map[string]interface{}, 4)