MYS: fix bug reboot loop from pro, change page drink fail
This commit is contained in:
parent
b37644e527
commit
ac38e45bef
8 changed files with 295 additions and 426 deletions
|
|
@ -51,58 +51,14 @@ Var UseSlideShowVideo = 0
|
|||
|
||||
Var NoTrickPriceProfile = 0
|
||||
|
||||
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
|
||||
WRITE_FILE "/mnt/sdcard/coffeevending/need_refresh_file" "0"
|
||||
|
||||
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
|
||||
|
||||
|
||||
|
||||
If BoxID = 177746 Then
|
||||
|
|
@ -112,7 +68,7 @@ If BoxID = 177746 Then
|
|||
|
||||
;Var ProMelonEnable = 0
|
||||
|
||||
Var EnablePayLaterMode = 1
|
||||
;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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue