design stream流 java地址修改
This commit is contained in:
@@ -4,7 +4,7 @@ import logging
|
|||||||
from fastapi import APIRouter
|
from fastapi import APIRouter
|
||||||
from fastapi import HTTPException
|
from fastapi import HTTPException
|
||||||
|
|
||||||
from app.core.config import SR_RABBITMQ_QUEUES, GI_RABBITMQ_QUEUES, GPI_RABBITMQ_QUEUES, GRI_RABBITMQ_QUEUES, OSS
|
from app.core.config import SR_RABBITMQ_QUEUES, GI_RABBITMQ_QUEUES, GPI_RABBITMQ_QUEUES, GRI_RABBITMQ_QUEUES, OSS, JAVA_STREAM_API_URL
|
||||||
from app.schemas.response_template import ResponseModel
|
from app.schemas.response_template import ResponseModel
|
||||||
|
|
||||||
logger = logging.getLogger()
|
logger = logging.getLogger()
|
||||||
@@ -18,6 +18,7 @@ def test(id: int):
|
|||||||
"GI_RABBITMQ_QUEUES": GI_RABBITMQ_QUEUES,
|
"GI_RABBITMQ_QUEUES": GI_RABBITMQ_QUEUES,
|
||||||
"GPI_RABBITMQ_QUEUES": GPI_RABBITMQ_QUEUES,
|
"GPI_RABBITMQ_QUEUES": GPI_RABBITMQ_QUEUES,
|
||||||
"GRI_RABBITMQ_QUEUES": GRI_RABBITMQ_QUEUES,
|
"GRI_RABBITMQ_QUEUES": GRI_RABBITMQ_QUEUES,
|
||||||
|
"JAVA_STREAM_API_URL": JAVA_STREAM_API_URL,
|
||||||
"local_oss_server": OSS
|
"local_oss_server": OSS
|
||||||
}
|
}
|
||||||
logger.info(json.dumps(data))
|
logger.info(json.dumps(data))
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ else:
|
|||||||
RABBITMQ_ENV = "-dev" # 开发环境
|
RABBITMQ_ENV = "-dev" # 开发环境
|
||||||
# RABBITMQ_ENV = "-local" # 本地测试环境
|
# RABBITMQ_ENV = "-local" # 本地测试环境
|
||||||
|
|
||||||
|
JAVA_STREAM_API_URL = os.getenv("JAVA_STREAM_API_URL", "https://api.aida.com.hk/api/third/party/receiveDesignResults")
|
||||||
|
|
||||||
|
|
||||||
settings = Settings()
|
settings = Settings()
|
||||||
|
|
||||||
# minio 配置
|
# minio 配置
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ def design_generate_v2(request_data):
|
|||||||
})
|
})
|
||||||
items_response['synthesis_url'] = synthesis_single(item_result['front_image'], item_result['back_image'])
|
items_response['synthesis_url'] = synthesis_single(item_result['front_image'], item_result['back_image'])
|
||||||
# 发送结果给java端
|
# 发送结果给java端
|
||||||
url = "https://develop.api.aida.com.hk/api/third/party/receiveDesignResults"
|
url = JAVA_STREAM_API_URL
|
||||||
headers = {
|
headers = {
|
||||||
'Accept': "*/*",
|
'Accept': "*/*",
|
||||||
'Accept-Encoding': "gzip, deflate, br",
|
'Accept-Encoding': "gzip, deflate, br",
|
||||||
|
|||||||
Reference in New Issue
Block a user