slogan 暂停监听

This commit is contained in:
2024-06-17 10:41:36 +08:00
parent 1d60a6a129
commit b5b6f737aa
2 changed files with 3 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ public class MQConfig {
// public static final String SR_RESULT_QUEUE = "SuperResolution-prod";
//
// public static final String GENERATE_RESULT_QUEUE = "GenerateImage-local";
public static final String GENERATE_RESULT_QUEUE = "GenerateImage-dev";
// public static final String GENERATE_RESULT_QUEUE = "GenerateImage-dev";
public static final String TO_PRODUCT_IMAGE_RESULT_QUEUE = "ToProductImage-local";
public MQConfig() {

View File

@@ -2989,6 +2989,8 @@ public class PythonService {
MediaType mediaType = MediaType.parse("application/json");
// RequestBody body = RequestBody.create(mediaType, JSON.toJSONString(generateToPythonDTO, SerializerFeature.WriteMapNullValue));
RequestBody body = RequestBody.create(mediaType, params);
log.info("generate 请求地址: {}", accessPythonIp + ":" + port + servicePath);
Request request = new Request.Builder()
// .url("http://18.167.251.121:9992")
// .url("http://127.0.0.1:5000/api/diffusion")