Merged + MYS: update new promotion Melonzy
This commit is contained in:
parent
124a46b3d5
commit
7e0076614a
31 changed files with 30835 additions and 15687 deletions
|
|
@ -5,6 +5,8 @@ DEBUGVAR XMLProfile
|
|||
STRCONTAIN "PromoYuzu250" XMLProfile HasProYuzu250Concat
|
||||
STRCONTAIN "PromoReduced" XMLProfile IsProfileReduce
|
||||
|
||||
STRCONTAIN "PromoMelon" XMLProfile HasProMelonConcat
|
||||
|
||||
Var refresh_str = "-RefreshProf"
|
||||
STRCONTAIN refresh_str XMLProfile HasRefreshProf
|
||||
|
||||
|
|
@ -18,10 +20,10 @@ If NeedRefreshProfile = 1 Then
|
|||
READ_FILE "/mnt/sdcard/coffeevending/profile/price/profile_MYS_slot_4.json" ProfileSlot4MYS
|
||||
|
||||
STRCONTAIN "Drop" ProfileSlot3MYS PromoYuzuDrop
|
||||
STRCONTAIN "Drop" ProfileSlot4MYS PromoYuzuDis50Drop
|
||||
STRCONTAIN "Drop" ProfileSlot4MYS PromoMelonDrop
|
||||
|
||||
DEBUGVAR PromoYuzuDrop
|
||||
DEBUGVAR PromoYuzuDis50Drop
|
||||
DEBUGVAR PromoMelonDrop
|
||||
|
||||
If HasRefreshProf = "true" Then
|
||||
|
||||
|
|
@ -33,16 +35,13 @@ If NeedRefreshProfile = 1 Then
|
|||
Var NeedRefreshProfile = 0
|
||||
Else
|
||||
; save-current-as-pre
|
||||
CacheVarStr "put" XMLProfilePreEvent
|
||||
CacheVarStr "get" XMLProfilePreEvent
|
||||
|
||||
If PromoYuzuDrop = "true" Then
|
||||
DEBUGVAR "case yuzu drop --> refresh"
|
||||
Var XMLProfile = XMLProfilePreEvent
|
||||
|
||||
If PromoMelonDrop = "true" Then
|
||||
SAVELOG "case melon drop --> refresh"
|
||||
Var XMLProfile = XMLProfile + refresh_str
|
||||
Else
|
||||
If PromoYuzuDis50Drop = "true" Then
|
||||
DEBUGVAR "case yuzu drop discount 50% --> refresh"
|
||||
Var XMLProfile = XMLProfile + refresh_str
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
|
@ -50,6 +49,9 @@ Else
|
|||
|
||||
DEBUGVAR HasProYuzu250Concat
|
||||
DEBUGVAR ProReducedPriceEnable
|
||||
|
||||
DEBUGVAR HasProMelonConcat
|
||||
|
||||
DEBUGVAR IgnoreProfileFromRunEV
|
||||
|
||||
If ProReducedPriceEnable = 1 Then
|
||||
|
|
@ -58,10 +60,10 @@ Else
|
|||
DEBUGVAR "Case pro reduce end"
|
||||
; case-pro-reduce-end
|
||||
If IgnoreProfileFromRunEV = 1 Then
|
||||
DEBUGVAR "Pro yuzu ongoing"
|
||||
DEBUGVAR "Pro melon ongoing"
|
||||
; concat-profile
|
||||
If HasProYuzu250Concat = "true" Then
|
||||
DEBUGVAR "Pro yuzu concat"
|
||||
If HasProMelonConcat = "true" Then
|
||||
DEBUGVAR "Pro melon concat"
|
||||
Else
|
||||
|
||||
If IsProfileReduce = "true" Then
|
||||
|
|
@ -71,25 +73,25 @@ Else
|
|||
DEBUGVAR "Get PreEvent Empty"
|
||||
Var XMLProfile = "General"
|
||||
Else
|
||||
DEBUGVAR "Restore profile by pre-event, also concat Yuzu"
|
||||
DEBUGVAR "Restore profile by pre-event, also concat Melon"
|
||||
DEBUGVAR XMLProfilePreEvent
|
||||
Var XMLProfile = XMLProfilePreEvent + "-"
|
||||
Var XMLProfile = XMLProfile + "PromoYuzu250"
|
||||
Var XMLProfile = XMLProfile + "PromoMelon250"
|
||||
|
||||
EndIf
|
||||
|
||||
Else
|
||||
DEBUGVAR "No pro reduce, concat pro yuzu"
|
||||
DEBUGVAR "No pro reduce, concat pro melon"
|
||||
CacheVarStr "put" XMLProfilePreEvent
|
||||
|
||||
Var XMLProfile = XMLProfile + "-"
|
||||
Var XMLProfile = XMLProfile + "PromoYuzu250"
|
||||
Var XMLProfile = XMLProfile + "PromoMelon250"
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
If IsProfileReduce = "true" Then
|
||||
DEBUGVAR "No yuzu but set pro reduce"
|
||||
DEBUGVAR "No melon but set pro reduce"
|
||||
CacheVarStr "get" XMLProfilePreEvent
|
||||
If XMLProfilePreEvent = "" Then
|
||||
DEBUGVAR "PreEvent empty, set General"
|
||||
|
|
@ -101,7 +103,7 @@ Else
|
|||
|
||||
Else
|
||||
|
||||
If HasProYuzu250Concat = "true" Then
|
||||
If HasProMelonConcat = "true" Then
|
||||
CacheVarStr "get" XMLProfilePreEvent
|
||||
Var XMLProfile = XMLProfilePreEvent
|
||||
EndIf
|
||||
|
|
@ -119,6 +121,11 @@ Else
|
|||
|
||||
If IgnoreProfileFromRunEV = 1 Then
|
||||
Var ToggleAfterEventProfileOff = 1
|
||||
|
||||
If ProMelonEnable = 1 Then
|
||||
Var IgnoreProfileFromRunEV = 0
|
||||
SAVELOG "Allow exec cmd brew from event_profile"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue