diff --git a/service/repositories/image_handle.go b/service/repositories/image_handle.go index a8ecf8d6..e2df38f8 100644 --- a/service/repositories/image_handle.go +++ b/service/repositories/image_handle.go @@ -188,7 +188,7 @@ func (l *defaultImageHandle) LogoInfoSet(ctx context.Context, in *LogoInfoSetReq logc.Infof(ctx, "算法请求--LOGO基础信息--开始时间:%v", time.Now().UTC()) err := curl.NewClient(ctx, &curl.Config{ - BaseUrl: *l.BLMServiceUrl + ":" + bLMServicePort, + BaseUrl: bLMServicePort, Url: constants.BLMServiceUrlLogoFeatureExtraction, }).PostJson(postMap, &resultBLM) logc.Infof(ctx, "算法请求--LOGO基础信息--结束时间:%v", time.Now().UTC()) @@ -340,7 +340,7 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq var resultBLM constants.BLMServiceUrlResult err = curl.NewClient(ctx, &curl.Config{ - BaseUrl: *l.BLMServiceUrl + ":" + bLMServicePort, + BaseUrl: bLMServicePort, Url: constants.BLMServiceUrlLogoCombine, RequireTimeout: time.Second * 15, }).PostJson(postMap, &resultBLM) @@ -482,7 +482,7 @@ func (l *defaultImageHandle) LogoStandard(ctx context.Context, in *LogoStandardR logc.Infof(ctx, "算法请求--去背景--开始时间:%v", time.Now().UTC()) err = curl.NewClient(ctx, &curl.Config{ - BaseUrl: *l.BLMServiceUrl + ":" + bLMServicePort, + BaseUrl: bLMServicePort, Url: constants.BLMServiceUrlLogoRemovebg, }).PostJson(postMap, &resultBLM) logc.Infof(ctx, "算法请求--去背景--结束时间:%v", time.Now().UTC())