👀v0.2.3,添加3个配置项目,展览详情支持发送活动介绍栏目内容

This commit is contained in:
2024-08-30 16:48:14 +08:00
parent ffc28c98f5
commit 32f067c33a
8 changed files with 79 additions and 9 deletions

View File

@ -110,6 +110,11 @@ def process_show_details_data_to_template(show_details_data: dict):
else:
guests = ""
desc = data["performance_desc"]["list"]
for item in desc:
if item.get("module") == "activity_content":
details_html = item.get("details", "")
# 构建返回的字典
item_dict = {
"banner_url": banner_url,
@ -123,10 +128,11 @@ def process_show_details_data_to_template(show_details_data: dict):
"guests": guests,
"is_refund": is_refund,
"id_bind": id_bind,
"has_eticket": has_eticket
"has_eticket": has_eticket,
"details_html": details_html
}
return item_dict
return [item_dict, details_html]
def process_shows_data_to_template(shows_data: dict):
showlist = []