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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,148 +0,0 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
|
||||
<EventOpen>
|
||||
|
||||
Var Timeout = 0
|
||||
DEBUGVAR TelephoneNumber
|
||||
DEBUGVAR FromFruityRaya
|
||||
DEBUGVAR Seeker.VendingCode
|
||||
DEBUGVAR Seeker.FruityRaya
|
||||
DEBUGVAR Seeker.UseFruityRayaCode
|
||||
|
||||
Var Cid = 43
|
||||
Var param1 = ""
|
||||
Var param2 = ""
|
||||
Var param3 = ""
|
||||
|
||||
If FromFruityRaya = 1 Then
|
||||
|
||||
If TelephoneNumber = "" Then
|
||||
|
||||
Else
|
||||
DEBUGVAR TelephoneNumber
|
||||
; Telephone must not empty
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
DEBUGVAR Seeker.CodeChannel
|
||||
Var Seeker.UseFruityRayaCode = 1
|
||||
Var Seeker.FruityRaya = 1
|
||||
Else
|
||||
Var Seeker.FruityRaya = 1
|
||||
Var Seeker.UseFruityRayaCode = 0
|
||||
DEBUGVAR Seeker.FruityRaya
|
||||
DEBUGVAR Seeker.UseFruityRayaCode
|
||||
AddData Cid TelephoneNumber param1 param2 param3
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
; reset flag
|
||||
Var FromFruityRaya = 0
|
||||
|
||||
; goto lid straw
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
|
||||
|
||||
</EventOpen>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
Var CountDownBrewing = BREW_CNT
|
||||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
If Timeout > 2 Then
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
EndIf
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
<EventSecurity>
|
||||
Open "/media/bt/xml/security_alarm.xml"
|
||||
</EventSecurity>
|
||||
|
||||
<EventActionOk>
|
||||
;
|
||||
|
||||
</EventActionOk>
|
||||
|
||||
|
||||
<EventMachine>
|
||||
If MachineStage = "drink-success" Then
|
||||
Var MachineState_Result = 1
|
||||
EndIf
|
||||
|
||||
If MachineStage = "drink-failed" Then
|
||||
Var MachineState_Result = 2
|
||||
EndIf
|
||||
</EventMachine>
|
||||
|
||||
|
||||
;<Image>
|
||||
;<X> 0 </X>
|
||||
;<Y> 0 </Y>
|
||||
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
|
||||
;</Image>
|
||||
|
||||
;include="ROOT/taobin_project/inc/video.inc"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
;<Image>
|
||||
;<X> 0 </X>
|
||||
;<Y> 380 </Y>
|
||||
;<Filename> "ROOT/taobin_project/image/display_get_free/alpha.png" </Filename>
|
||||
;</Image>
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 560 </Y>
|
||||
<State> "Enable" </State>
|
||||
<Filename> Var( DirImage + img_popup6 )</Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 751 </X>
|
||||
<Y> 413 </Y>
|
||||
<Filename> IMG_CNT </Filename>
|
||||
</Image>
|
||||
;
|
||||
<Text>
|
||||
<X> XPosiShowCountDownBrew </X>
|
||||
<Y> 470 </Y>
|
||||
<Align> End </Align>
|
||||
<Width> 153 </Width>
|
||||
<Size> 88 </Size>
|
||||
<Font> RobotoBold </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> ShowCountDownBrewing </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 99 </X>
|
||||
<Y> 1300 </Y>
|
||||
<Align> center </Align>
|
||||
<Size> 48 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> "Please wait for coupon from SMS ... "
|
||||
</Text>
|
||||
|
||||
</Popup>
|
||||
|
|
@ -1 +1 @@
|
|||
/event/promotion_yuzu_250.lxml
|
||||
/event/promotion_melonzy.lxml
|
||||
|
|
|
|||
14052
inter/mys/xml/event/promotion_melonzy.lxml
Normal file
14052
inter/mys/xml/event/promotion_melonzy.lxml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1 +1 @@
|
|||
Open "ROOT/taobin_project/inter/mys/xml/page_catalog_group_pro_yuzu_250.lxml"
|
||||
Open "ROOT/taobin_project/inter/mys/xml/page_catalog_group_pro_melon.lxml"
|
||||
|
|
|
|||
|
|
@ -2,16 +2,18 @@
|
|||
|
||||
|
||||
; zone promote
|
||||
DEBUGVAR FruityRayaEnable
|
||||
; 10/02/25_remove_fruity_raya
|
||||
DEBUGVAR ProThaiTeaEnable
|
||||
DEBUGVAR ProYuzuEnable
|
||||
DEBUGVAR ProMelonEnable
|
||||
|
||||
DEBUGVAR IgnoreProfileFromRunEV
|
||||
|
||||
If OpenFromPageBoard = 1 Then
|
||||
|
||||
; has-ongoing-pro
|
||||
If IgnoreProfileFromRunEV = 1 Then
|
||||
OpenInst 2 "ROOT/taobin_project/inter/mys/xml/event/promotion_yuzu_250.lxml"
|
||||
If ProMelonEnable = 1 Then
|
||||
OpenInst 2 "ROOT/taobin_project/inter/mys/xml/event/promotion_melonzy.lxml"
|
||||
|
||||
Var OpenFromPageBoard = 0
|
||||
Else
|
||||
|
|
@ -20,8 +22,8 @@ If OpenFromPageBoard = 1 Then
|
|||
Else
|
||||
|
||||
; has-ongoing-pro
|
||||
If IgnoreProfileFromRunEV = 1 Then
|
||||
OpenInst 2 "ROOT/taobin_project/inter/mys/xml/event/promotion_yuzu_250.lxml"
|
||||
If ProMelonEnable = 1 Then
|
||||
OpenInst 2 "ROOT/taobin_project/inter/mys/xml/event/promotion_melonzy.lxml"
|
||||
|
||||
Var OpenFromPageBoard = 0
|
||||
Else
|
||||
|
|
|
|||
|
|
@ -24,6 +24,11 @@ Var FromProYuzu = 0
|
|||
Var IgnoreProfileFromRunEV = 0
|
||||
Var FromProYuzu250 = 0
|
||||
|
||||
; Melon Promo
|
||||
Var ProMelonEnable = 0
|
||||
Var FromProMelon = 0
|
||||
|
||||
|
||||
|
||||
; Pro free oreo topping
|
||||
Var PromotionOreoToppingFreeEnable = 0
|
||||
|
|
@ -46,57 +51,54 @@ Var UseSlideShowVideo = 0
|
|||
|
||||
Var NoTrickPriceProfile = 0
|
||||
|
||||
|
||||
If SystemDateMonthInt = 9 Then
|
||||
If SystemDateDayInt < 16 Then
|
||||
Var PromotionOreoToppingFreeEnable = 1
|
||||
If SetProReduceByBO = 1 Then
|
||||
Var ProReducedPriceEnable = 1
|
||||
EndIf
|
||||
Else
|
||||
Var PromotionOreoToppingFreeEnable = 0
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 10 Then
|
||||
|
||||
Var IgnoreProfileFromRunEV = 0
|
||||
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 11 Then
|
||||
|
||||
Var IgnoreProfileFromRunEV = 0
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 12 Then
|
||||
Var IgnoreProfileFromRunEV = 0
|
||||
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt < 10 Then
|
||||
Var ProReducedPriceEnable = 0
|
||||
Var IgnoreProfileFromRunEV = 0
|
||||
EndIf
|
||||
|
||||
If ProReducedPriceEnable = 0 Then
|
||||
If XMLProfile = "PromoReduced" Then
|
||||
Var NoTrickPriceProfile = 1
|
||||
|
||||
If SystemDateMonthInt = 3 Then
|
||||
If SystemDateDayInt >= 10 Then
|
||||
Var ProMelonEnable = 1
|
||||
Else
|
||||
Var ProMelonEnable = 0
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 4 Then
|
||||
If SystemDateDayInt <= 20 Then
|
||||
Var ProMelonEnable = 1
|
||||
Else
|
||||
Var ProMelonEnable = 0
|
||||
|
||||
READ_FILE "/mnt/sdcard/coffeevending/profile/price/profile_MYS_slot_4.json" ProfileSlot4MYS
|
||||
STRCONTAIN "Drop" ProfileSlot4MYS PromoMelonDrop
|
||||
|
||||
If PromoMelonDrop = "true" Then
|
||||
SAVELOG "Promotion <Melon> already dropped !!!"
|
||||
|
||||
Else
|
||||
|
||||
; zone-self-refresh
|
||||
SAVELOG "Promotion <Melon> End, Self Refresh !!!"
|
||||
WRITE_FILE "/mnt/sdcard/coffeevending/profile/price/profile_MYS_slot_4.json" "Drop"
|
||||
WRITE_FILE "/mnt/sdcard/coffeevending/profile/profile_MYS_5.json" "Drop"
|
||||
WRITE_FILE "/mnt/sdcard/coffeevending/profile/profile_MYS_new_5.json" "Drop"
|
||||
WRITE_FILE "/mnt/sdcard/coffeevending/need_refresh_file" "1"
|
||||
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
; zone-refresh-once
|
||||
|
||||
READ_FILE "/mnt/sdcard/coffeevending/need_refresh_file" NeedRefreshStr
|
||||
STRCONTAIN "1" NeedRefreshStr need_refresh
|
||||
|
||||
DEBUGVAR need_refresh
|
||||
|
||||
If need_refresh = "true" Then
|
||||
|
||||
Var NeedRefreshProfile = 1
|
||||
WRITE_FILE "/mnt/sdcard/coffeevending/need_refresh_file" "0"
|
||||
|
||||
SAVELOG "Set SelfRefresh := True"
|
||||
|
||||
Else
|
||||
Var NeedRefreshProfile = 0
|
||||
EndIf
|
||||
|
|
@ -104,10 +106,12 @@ EndIf
|
|||
|
||||
|
||||
If BoxID = 177746 Then
|
||||
Var ProThaiTeaEnable = 1
|
||||
Var ProYuzuEnable = 1
|
||||
Var ProThaiTeaEnable = 0
|
||||
Var ProYuzuEnable = 0
|
||||
Var PromotionOreoToppingFreeEnable = 0
|
||||
|
||||
;Var ProMelonEnable = 0
|
||||
|
||||
Var EnablePayLaterMode = 1
|
||||
|
||||
;Var AdvertiseProfile = "00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00"
|
||||
|
|
@ -118,6 +122,10 @@ If BoxID = 177746 Then
|
|||
;Var IgnoreProfileFromRunEV = 1
|
||||
EndIf
|
||||
|
||||
If ProMelonEnable = 1 Then
|
||||
Var IgnoreProfileFromRunEV = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 210037 Then
|
||||
Var UseSlideShowVideo = 1
|
||||
EndIf
|
||||
|
|
|
|||
|
|
@ -1,157 +0,0 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
|
||||
<EventOpen>
|
||||
|
||||
Var Timeout = 0
|
||||
DEBUGVAR TelephoneNumber
|
||||
DEBUGVAR FromProYuzu
|
||||
DEBUGVAR Seeker.VendingCode
|
||||
DEBUGVAR Seeker.ProYuzu
|
||||
DEBUGVAR Seeker.UseProYuzuCode
|
||||
|
||||
Var Cid = 43
|
||||
Var param1 = ""
|
||||
Var param2 = ""
|
||||
Var param3 = ""
|
||||
|
||||
If FromProYuzu = 1 Then
|
||||
|
||||
If TelephoneNumber = "" Then
|
||||
|
||||
Else
|
||||
DEBUGVAR Seeker.TNumberTaobinMember
|
||||
; Telephone must not empty
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
DEBUGVAR Seeker.CodeChannel
|
||||
Var Seeker.UseProYuzuCode = 1
|
||||
Var Seeker.ProYuzu = 1
|
||||
Else
|
||||
DEBUGVAR Seeker.TNumberTaobinMember
|
||||
DEBUGVAR TelephoneNumber
|
||||
Var Seeker.TNumberTaobinMember = TelephoneNumber
|
||||
DEBUGVAR Seeker.TNumberTaobinMember
|
||||
|
||||
Var Seeker.ProYuzu = 1
|
||||
Var Seeker.UseProYuzuCode = 0
|
||||
DEBUGVAR Seeker.ProYuzu
|
||||
DEBUGVAR Seeker.UseProYuzuCode
|
||||
|
||||
; support-for-multi-pro-with-same-cid
|
||||
Var param1 = "703"
|
||||
|
||||
AddData Cid TelephoneNumber param1 param2 param3
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
; reset flag
|
||||
Var FromProYuzu = 0
|
||||
|
||||
; goto lid straw
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
|
||||
|
||||
</EventOpen>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
Var CountDownBrewing = BREW_CNT
|
||||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
If Timeout > 2 Then
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
EndIf
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
<EventSecurity>
|
||||
Open "/media/bt/xml/security_alarm.xml"
|
||||
</EventSecurity>
|
||||
|
||||
<EventActionOk>
|
||||
;
|
||||
|
||||
</EventActionOk>
|
||||
|
||||
|
||||
<EventMachine>
|
||||
If MachineStage = "drink-success" Then
|
||||
Var MachineState_Result = 1
|
||||
EndIf
|
||||
|
||||
If MachineStage = "drink-failed" Then
|
||||
Var MachineState_Result = 2
|
||||
EndIf
|
||||
</EventMachine>
|
||||
|
||||
|
||||
;<Image>
|
||||
;<X> 0 </X>
|
||||
;<Y> 0 </Y>
|
||||
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
|
||||
;</Image>
|
||||
|
||||
;include="ROOT/taobin_project/inc/video.inc"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
;<Image>
|
||||
;<X> 0 </X>
|
||||
;<Y> 380 </Y>
|
||||
;<Filename> "ROOT/taobin_project/image/display_get_free/alpha.png" </Filename>
|
||||
;</Image>
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 560 </Y>
|
||||
<State> "Enable" </State>
|
||||
<Filename> Var( DirImage + img_popup6 )</Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 751 </X>
|
||||
<Y> 413 </Y>
|
||||
<Filename> IMG_CNT </Filename>
|
||||
</Image>
|
||||
;
|
||||
<Text>
|
||||
<X> XPosiShowCountDownBrew </X>
|
||||
<Y> 470 </Y>
|
||||
<Align> End </Align>
|
||||
<Width> 153 </Width>
|
||||
<Size> 88 </Size>
|
||||
<Font> RobotoBold </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> ShowCountDownBrewing </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 99 </X>
|
||||
<Y> 1300 </Y>
|
||||
<Align> center </Align>
|
||||
<Size> 48 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> "Please wait for coupon from SMS ... "
|
||||
</Text>
|
||||
|
||||
</Popup>
|
||||
Loading…
Add table
Add a link
Reference in a new issue