fix:合图,参数调整

This commit is contained in:
momo 2023-09-12 17:49:40 +08:00
parent 1699420c4a
commit c7f8bbfbcb

View File

@ -264,7 +264,17 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq
logx.Error(err)
return nil, err
}
if templateInfo["materialList"] == nil {
err = errors.New("materialList is null")
logc.Errorf(ctx, "materialList err%v", err)
return nil, err
}
materialList = templateInfo["materialList"].([]interface{})
if templateInfo["groupOptions"] == nil {
err = errors.New("groupOptions is null")
logc.Errorf(ctx, "groupOptions err%v", err)
return nil, err
}
groupOptions = templateInfo["groupOptions"].(map[string]interface{})
}