feat(新功能):
fix(修复bug): docs(文档变更): refactor(重构): test(增加测试): java 回调 api地址
This commit is contained in:
@@ -200,7 +200,11 @@ def design_generate_v2(request_data):
|
||||
items_response['synthesis_url'] = synthesis_single(item_result['front_image'], item_result['back_image'])
|
||||
# 发送结果给java端
|
||||
url = JAVA_STREAM_API_URL
|
||||
xu_pei_test_url = "https://cd21b9110505.ngrok-free.app/api/third/party/receiveDesignResults"
|
||||
|
||||
logger.info(f"java 回调 -> {url}")
|
||||
logger.info(f"xupei java 回调 -> {xu_pei_test_url}")
|
||||
|
||||
headers = {
|
||||
'Accept': "*/*",
|
||||
'Accept-Encoding': "gzip, deflate, br",
|
||||
@@ -214,6 +218,11 @@ def design_generate_v2(request_data):
|
||||
# 打印结果
|
||||
logger.info(response.text)
|
||||
|
||||
response = post_request(xu_pei_test_url, json_data=items_response, headers=headers)
|
||||
if response:
|
||||
# 打印结果
|
||||
logger.info(f"xupei test response : {response.text}")
|
||||
|
||||
for step, object in enumerate(objects_data):
|
||||
t = threading.Thread(target=process_object, args=(step, object))
|
||||
threads.append(t)
|
||||
|
||||
Reference in New Issue
Block a user