fix:算法请求调整
This commit is contained in:
parent
14e909a9a6
commit
21475d7d52
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue
Block a user