before merge
This commit is contained in:
commit
5d9721e4ac
188 changed files with 52004 additions and 17393 deletions
|
|
@ -11,7 +11,8 @@ if "v3" in param and "promotion" in param and "other_catalog" in param:
|
|||
|
||||
files = os.listdir(directory_to_process + "/event/event_v3/catalog_other")
|
||||
files = [f for f in files if f.endswith(".json")]
|
||||
for filename in files:
|
||||
files.sort()
|
||||
for filename in reversed(files):
|
||||
pro_json_file = open(directory_to_process + "/event/event_v3/catalog_other/"+ filename)
|
||||
pro_json = json.load(pro_json_file)
|
||||
start_time = datetime.datetime.strptime(pro_json["start"], "%Y-%m-%dT%H:%M:%S")
|
||||
|
|
@ -25,9 +26,9 @@ if "v3" in param and "promotion" in param and "other_catalog" in param:
|
|||
pro_content = pro_content.replace("#EventClick", pro_json["event_click"])
|
||||
all_active_pro += pro_content + "\n\t"
|
||||
|
||||
pro_output_file = open(directory_to_process + "/event/event_v3/catalog_other/active_promotions.lxml", 'w')
|
||||
pro_output_file.write(template_content.replace(";banners", all_active_pro))
|
||||
pro_output_file.close()
|
||||
pro_output_file = open(directory_to_process + "/event/event_v3/catalog_other/active_promotions.lxml", 'w')
|
||||
pro_output_file.write(template_content.replace(";banners", all_active_pro))
|
||||
pro_output_file.close()
|
||||
|
||||
if "v3" in param and "promotion" in param:
|
||||
file_template = open(directory_to_process + "/page_catalog_group_recommend.lxml", 'r')
|
||||
|
|
@ -43,7 +44,7 @@ if "v3" in param and "promotion" in param:
|
|||
files = os.listdir(directory_to_process + "/event/event_v3")
|
||||
files = [f for f in files if f.endswith(".json")]
|
||||
files.sort()
|
||||
for filename in files:
|
||||
for filename in reversed(files):
|
||||
pro_json_file = open(directory_to_process + "/event/event_v3/"+ filename)
|
||||
pro_json = json.load(pro_json_file)
|
||||
start_time = datetime.datetime.strptime(pro_json["start"], "%Y-%m-%dT%H:%M:%S")
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"start": "2025-07-01T00:00:00",
|
||||
"end": "2025-07-31T00:00:00",
|
||||
"state": "AmericanoProState",
|
||||
"type": "IMAGE",
|
||||
"media_thai": "ROOT/taobin_project/image/event/americano/americano_banner.png",
|
||||
"media_eng": "ROOT/taobin_project/image/event/americano/americano_banner.png",
|
||||
"event_click": "TabMenuVisibleInst 99\r\nOpenInst 2 \"ROOT/taobin_project/inter/tha/xml/multi/v3/page_catalog_group_pro_americano.lxml\""
|
||||
}
|
||||
|
|
@ -108,6 +108,23 @@
|
|||
<MenuUnavailableLabel> 000013 </MenuUnavailableLabel>
|
||||
</Configuration>
|
||||
<Menus>
|
||||
<Banner>
|
||||
<State> AmericanoProState </State>
|
||||
<Type> IMAGE </Type>
|
||||
<Media>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/americano/americano_banner.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/americano/americano_banner.png"
|
||||
EndIf
|
||||
)
|
||||
</Media>
|
||||
<EventOnClick>
|
||||
TabMenuVisibleInst 99
|
||||
OpenInst 2 "ROOT/taobin_project/inter/tha/xml/multi/v3/page_catalog_group_pro_americano.lxml"
|
||||
</EventOnClick>
|
||||
</Banner>
|
||||
<Banner>
|
||||
<State> TaiwaneseTeaProState </State>
|
||||
<Type> IMAGE </Type>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue