From 6b4617b6e71542f1356e78dc947a1d4fe73e6f2b Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Wed, 25 Oct 2023 14:43:49 +0800 Subject: [PATCH] fix --- service/repositories/image_handle.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service/repositories/image_handle.go b/service/repositories/image_handle.go index ef42820b..0be29756 100644 --- a/service/repositories/image_handle.go +++ b/service/repositories/image_handle.go @@ -223,7 +223,7 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq moduleDataMap["materialList"] = materialList var combineParam map[string]interface{} - json.Unmarshal([]byte(*resLogoInfo.Metadata), &combineParam) + json.Unmarshal(*resLogoInfo.Metadata, &combineParam) combineParam["resolution"] = in.Resolution combineParam["template_tagid"] = in.TemplateTag combineParam["website"] = in.Website @@ -248,7 +248,8 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq } else { globalBLMServiceIndex = globalBLMServiceIndex + 1 } - + cc, _ := json.Marshal(postMap) + logx.Info("合图数据:", string(cc)) logc.Infof(ctx, "合图--算法请求--合图--开始时间:%v", time.Now().UTC()) var startTimeLogoCombine = time.Now().UnixMilli() //合图--处理--开始时间