|
|
@@ -257,7 +257,7 @@ async def fromExcelHandler(params: HandlerDetail):
|
|
|
try:
|
|
|
if cutout_res:
|
|
|
return_data_check_before_detail = run_main.check_before_detail(config_data)
|
|
|
- check_for_detail_first_res = await run_main.check_for_detail_first_call_back(
|
|
|
+ check_for_detail_first_res = run_main.check_for_detail_first_call_back(
|
|
|
return_data_check_before_detail
|
|
|
)
|
|
|
if isinstance(check_for_detail_first_res, partial):
|
|
|
@@ -328,7 +328,7 @@ async def fromExcelHandler(params: HandlerDetail):
|
|
|
status="处理结束",
|
|
|
msg_type="detail_result_progress",
|
|
|
)
|
|
|
- return
|
|
|
+ return True
|
|
|
|
|
|
|
|
|
def group_by_style_number(data):
|
|
|
@@ -494,7 +494,7 @@ async def process_handle_detail(request: Request, params: HandlerDetail):
|
|
|
status="处理结束",
|
|
|
msg_type="detail_result_progress",
|
|
|
)
|
|
|
- return
|
|
|
+ return True
|
|
|
if is_product_scene == 1:
|
|
|
if product_scene_prompt == "" or product_scene_prompt == None:
|
|
|
raise UnicornException("请填写场景描述")
|
|
|
@@ -531,11 +531,9 @@ async def process_handle_detail(request: Request, params: HandlerDetail):
|
|
|
goods_art_dict_info["场景图"] = save_image_path
|
|
|
new_goods_dict[goods_art_no] = goods_art_dict_info
|
|
|
continue
|
|
|
- print("处理场景图2", goods_art_no)
|
|
|
aigc_clazz.center_paste_image(ceshi_image_path, save_image_path)
|
|
|
- print("处理场景图3", goods_art_no)
|
|
|
try:
|
|
|
- image_path = await aigc_clazz.generateProductScene(
|
|
|
+ image_path = aigc_clazz.generateProductScene(
|
|
|
save_image_path, product_scene_prompt, save_image_path
|
|
|
)
|
|
|
goods_art_dict_info["场景图"] = image_path
|
|
|
@@ -594,7 +592,7 @@ async def process_handle_detail(request: Request, params: HandlerDetail):
|
|
|
continue
|
|
|
shutil.copy(ceshi_image_path, save_image_path)
|
|
|
try:
|
|
|
- image_path = await aigc_clazz.generateUpperShoes(
|
|
|
+ image_path = aigc_clazz.generateUpperShoes(
|
|
|
save_image_path, model_id, save_image_path
|
|
|
)
|
|
|
goods_art_dict_info["模特图"] = image_path
|
|
|
@@ -646,8 +644,8 @@ async def process_handle_detail(request: Request, params: HandlerDetail):
|
|
|
status="处理结束",
|
|
|
msg_type="detail_result_progress",
|
|
|
)
|
|
|
- return
|
|
|
- check_for_detail_first_res = await run_main.check_for_detail_first_call_back(
|
|
|
+ return True
|
|
|
+ check_for_detail_first_res = run_main.check_for_detail_first_call_back(
|
|
|
return_data_check_before_detail
|
|
|
)
|
|
|
if isinstance(check_for_detail_first_res, partial):
|
|
|
@@ -709,7 +707,7 @@ async def process_handle_detail(request: Request, params: HandlerDetail):
|
|
|
msg_type="upload_goods_progress",
|
|
|
)
|
|
|
try:
|
|
|
- await onlineData.uploadGoods2ThirdParty(
|
|
|
+ onlineData.uploadGoods2ThirdParty(
|
|
|
result_goods_no_dict, online_stores=online_stores
|
|
|
)
|
|
|
except Exception as e:
|
|
|
@@ -744,7 +742,7 @@ async def process_handle_detail(request: Request, params: HandlerDetail):
|
|
|
status="处理结束",
|
|
|
msg_type="detail_result_progress",
|
|
|
)
|
|
|
- return
|
|
|
+ return True
|
|
|
|
|
|
|
|
|
@app.get("/get_device_tabs", description="获取可执行程序命令列表")
|