From a23983b57c4f77f78e9e03b41ecaad6596776a5c Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Wed, 9 Aug 2023 10:15:22 +0800 Subject: [PATCH] fix --- server/render/consumer/assemble_render_data.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/render/consumer/assemble_render_data.go b/server/render/consumer/assemble_render_data.go index be5208a2..20291803 100644 --- a/server/render/consumer/assemble_render_data.go +++ b/server/render/consumer/assemble_render_data.go @@ -175,7 +175,7 @@ func (m *MqConsumerRenderAssemble) Run(ctx context.Context, data []byte) error { if index, ok := mapImageData[templateInfo.Id]; ok { baseImage = constants.H5_URL + "/storage" + rspInfo.Data[index].Imgurl } - tempData := []map[string]interface{}{} + tempData := make([]map[string]interface{}, 0, 3) if element.Base != nil && *element.Base != "" { tempData = append(tempData, map[string]interface{}{ "name": "model",