From 8dcd2b531a90d600b3ff563fa8258c7f84de5bf0 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Mon, 30 Oct 2023 17:28:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=B8=8A=E4=BC=A0logo--debug=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/repositories/image_handle.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/service/repositories/image_handle.go b/service/repositories/image_handle.go index e58a3216..1abf7cfd 100644 --- a/service/repositories/image_handle.go +++ b/service/repositories/image_handle.go @@ -87,16 +87,15 @@ func (l *defaultImageHandle) LogoInfoSet(ctx context.Context, in *LogoInfoSetReq } var resultBLM constants.BLMServiceUrlResult - postMap := make(map[string]string, 2) + postMap := make(map[string]string, 3) postMap["logo_url"] = in.LogoUrl postMap["version"] = in.Version - postMap["is_all_template"] = "0" - // if in.Debug != nil && in.Debug.IsAllTemplateTag == 1 { - // postMap["is_all_template"] = "1" - // } else { - // postMap["is_all_template"] = "0" - // } + if in.Debug != nil && in.Debug.IsAllTemplateTag == 1 { + postMap["is_all_template"] = "1" + } else { + postMap["is_all_template"] = "0" + } logc.Infof(ctx, "算法请求--LOGO基础信息--开始时间:%v", time.Now().UTC()) err := curl.NewClient(ctx, &curl.Config{