From f8df7b55b3cb562f4002247b754bea1ddd24d874 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Thu, 10 Aug 2023 16:53:50 +0800 Subject: [PATCH] fix --- server/render/consumer/assemble_render_data.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/render/consumer/assemble_render_data.go b/server/render/consumer/assemble_render_data.go index 8fb6f82b..85fe4079 100644 --- a/server/render/consumer/assemble_render_data.go +++ b/server/render/consumer/assemble_render_data.go @@ -180,7 +180,7 @@ func getCombineImage(ctx context.Context, svcCtx *svc.ServiceContext, parseInfo "address": "", "phone": "", "colors": []string{}, - "template_tagid": []string{}, + "template_tagid": []string{"b1a"}, "is_crop": false, "shape": "", "ratio": 0, @@ -222,6 +222,9 @@ func getCombineImage(ctx context.Context, svcCtx *svc.ServiceContext, parseInfo url := svcCtx.Config.PythonApi.CombineImageUrl header := make(map[string]string) header["content-type"] = "application/json" + /*f, _ := os.Create("a.txt") + defer f.Close() + f.Write(postData)*/ httpRsp, err := curl.ApiCall(url, "POST", header, bytes.NewReader(postData), 20) if err != nil { logx.Error("failed to combine logo:", err)