Merged + MYS: update new promotion Melonzy
This commit is contained in:
parent
124a46b3d5
commit
7e0076614a
31 changed files with 30835 additions and 15687 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue