|
|
@@ -136,7 +136,11 @@ async def handle_detail(request: Request, params: HandlerDetail):
|
|
|
)
|
|
|
if not resFlag:
|
|
|
raise UnicornException(path)
|
|
|
-
|
|
|
+ temp_class = {}
|
|
|
+ temp_name_list = []
|
|
|
+ for tempItem in params.temp_list:
|
|
|
+ temp_class[tempItem.template_id] = tempItem.template_local_classes
|
|
|
+ temp_name_list.append(tempItem.template_id)
|
|
|
config_data = {
|
|
|
"image_dir": path,
|
|
|
"image_order": params.template_image_order,
|
|
|
@@ -155,14 +159,9 @@ async def handle_detail(request: Request, params: HandlerDetail):
|
|
|
"upload_is_pass": False,
|
|
|
"upload_is_enable": False,
|
|
|
"is_filter": False,
|
|
|
- "temp_class": {
|
|
|
- "huilima-2": "custom_plugins.plugins.detail_template.huilima.detail_huilima2.DetailPicGet",
|
|
|
- "huilima-3": "custom_plugins.plugins.detail_template.huilima.detail_huilima3.DetailPicGet",
|
|
|
- "huilima-4": "custom_plugins.plugins.detail_template.huilima.detail_huilima4.DetailPicGet",
|
|
|
- "huilima-1": "custom_plugins.plugins.detail_template.huilima.detail_huilima1.DetailPicGet",
|
|
|
- },
|
|
|
+ "temp_class": temp_class,
|
|
|
"temp_name": params.temp_name,
|
|
|
- "temp_name_list": ["huilima-2", "huilima-3", "huilima-4", "huilima-1"],
|
|
|
+ "temp_name_list": temp_name_list,
|
|
|
"target_error_folder": f"{path}/软件-生成详情错误",
|
|
|
}
|
|
|
# 动态导入类
|