fix:上传logo--debug模式

This commit is contained in:
momo 2023-10-30 17:28:05 +08:00
parent 6251fea936
commit 8dcd2b531a

View File

@ -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{