diff --git a/server/render/consumer/assemble_render_data.go b/server/render/consumer/assemble_render_data.go index 4fbc96e4..8fb6f82b 100644 --- a/server/render/consumer/assemble_render_data.go +++ b/server/render/consumer/assemble_render_data.go @@ -218,8 +218,8 @@ func getCombineImage(ctx context.Context, svcCtx *svc.ServiceContext, parseInfo } combineInfo["param_data"] = replaceData postData, _ := json.Marshal(combineInfo) - //地址写死了目前 - url := "http://192.168.1.7:45678/LogoCombine" + //请求合成图片 + url := svcCtx.Config.PythonApi.CombineImageUrl header := make(map[string]string) header["content-type"] = "application/json" httpRsp, err := curl.ApiCall(url, "POST", header, bytes.NewReader(postData), 20) diff --git a/server/render/etc/render.yaml b/server/render/etc/render.yaml index 86b2a6a1..7081d46b 100644 --- a/server/render/etc/render.yaml +++ b/server/render/etc/render.yaml @@ -12,4 +12,6 @@ AWS: Credentials: AccessKeyID: AKIAZB2JKUXDPNRP4YT2 Secret: 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 - Token: \ No newline at end of file + Token: +PythonApi: #python接口 + CombineImageUrl: http://192.168.1.7:45678/LogoCombine #合成刀版图接口 \ No newline at end of file diff --git a/server/render/internal/config/config.go b/server/render/internal/config/config.go index 71834c5d..3cc5089e 100644 --- a/server/render/internal/config/config.go +++ b/server/render/internal/config/config.go @@ -19,4 +19,7 @@ type Config struct { } } } + PythonApi struct { + CombineImageUrl string //合图url + } }