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
BIN
inter/mys/image/collectiing/text11_if_credit.png
Normal file
BIN
inter/mys/image/collectiing/text11_if_credit.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
|
@ -1,132 +1 @@
|
|||
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/mys/xml/event/tricker.ev"
|
||||
|
||||
Var XMLProfilePreEvent = XMLProfile
|
||||
DEBUGVAR XMLProfile
|
||||
STRCONTAIN "PromoYuzu250" XMLProfile HasProYuzu250Concat
|
||||
STRCONTAIN "PromoReduced" XMLProfile IsProfileReduce
|
||||
|
||||
STRCONTAIN "PromoMelon" XMLProfile HasProMelonConcat
|
||||
|
||||
Var refresh_str = "-RefreshProf"
|
||||
STRCONTAIN refresh_str XMLProfile HasRefreshProf
|
||||
|
||||
DEBUGVAR HasRefreshProf
|
||||
DEBUGVAR NeedRefreshProfile
|
||||
|
||||
; refresh-profile-after-promo-end
|
||||
If NeedRefreshProfile = 1 Then
|
||||
|
||||
READ_FILE "/mnt/sdcard/coffeevending/profile/price/profile_MYS_slot_3.json" ProfileSlot3MYS
|
||||
READ_FILE "/mnt/sdcard/coffeevending/profile/price/profile_MYS_slot_4.json" ProfileSlot4MYS
|
||||
|
||||
STRCONTAIN "Drop" ProfileSlot3MYS PromoYuzuDrop
|
||||
STRCONTAIN "Drop" ProfileSlot4MYS PromoMelonDrop
|
||||
|
||||
DEBUGVAR PromoYuzuDrop
|
||||
DEBUGVAR PromoMelonDrop
|
||||
|
||||
If HasRefreshProf = "true" Then
|
||||
|
||||
DEBUGVAR "case already refresh"
|
||||
|
||||
; restore-profile
|
||||
CacheVarStr "get" XMLProfilePreEvent
|
||||
Var XMLProfile = XMLProfilePreEvent
|
||||
Var NeedRefreshProfile = 0
|
||||
Else
|
||||
; save-current-as-pre
|
||||
CacheVarStr "get" XMLProfilePreEvent
|
||||
|
||||
Var XMLProfile = XMLProfilePreEvent
|
||||
|
||||
If PromoMelonDrop = "true" Then
|
||||
SAVELOG "case melon drop --> refresh"
|
||||
Var XMLProfile = XMLProfile + refresh_str
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
Else
|
||||
|
||||
DEBUGVAR HasProYuzu250Concat
|
||||
DEBUGVAR ProReducedPriceEnable
|
||||
|
||||
DEBUGVAR HasProMelonConcat
|
||||
|
||||
DEBUGVAR IgnoreProfileFromRunEV
|
||||
|
||||
If ProReducedPriceEnable = 1 Then
|
||||
|
||||
Else
|
||||
DEBUGVAR "Case pro reduce end"
|
||||
; case-pro-reduce-end
|
||||
If IgnoreProfileFromRunEV = 1 Then
|
||||
DEBUGVAR "Pro melon ongoing"
|
||||
; concat-profile
|
||||
If HasProMelonConcat = "true" Then
|
||||
DEBUGVAR "Pro melon concat"
|
||||
Else
|
||||
|
||||
If IsProfileReduce = "true" Then
|
||||
DEBUGVAR "Pro reduce was set but disabled from trick"
|
||||
CacheVarStr "get" XMLProfilePreEvent
|
||||
If XMLProfilePreEvent = "" Then
|
||||
DEBUGVAR "Get PreEvent Empty"
|
||||
Var XMLProfile = "General"
|
||||
Else
|
||||
DEBUGVAR "Restore profile by pre-event, also concat Melon"
|
||||
DEBUGVAR XMLProfilePreEvent
|
||||
Var XMLProfile = XMLProfilePreEvent + "-"
|
||||
Var XMLProfile = XMLProfile + "PromoMelon250"
|
||||
|
||||
EndIf
|
||||
|
||||
Else
|
||||
DEBUGVAR "No pro reduce, concat pro melon"
|
||||
CacheVarStr "put" XMLProfilePreEvent
|
||||
|
||||
Var XMLProfile = XMLProfile + "-"
|
||||
Var XMLProfile = XMLProfile + "PromoMelon250"
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
If IsProfileReduce = "true" Then
|
||||
DEBUGVAR "No melon but set pro reduce"
|
||||
CacheVarStr "get" XMLProfilePreEvent
|
||||
If XMLProfilePreEvent = "" Then
|
||||
DEBUGVAR "PreEvent empty, set General"
|
||||
Var XMLProfile = "General"
|
||||
Else
|
||||
DEBUGVAR "Restore profile by pre-event"
|
||||
Var XMLProfile = XMLProfilePreEvent
|
||||
EndIf
|
||||
|
||||
Else
|
||||
|
||||
If HasProMelonConcat = "true" Then
|
||||
CacheVarStr "get" XMLProfilePreEvent
|
||||
Var XMLProfile = XMLProfilePreEvent
|
||||
EndIf
|
||||
|
||||
DEBUGVAR "Store profile pre event"
|
||||
DEBUGVAR XMLProfilePreEvent
|
||||
CacheVarStr "put" XMLProfilePreEvent
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
If IgnoreProfileFromRunEV = 1 Then
|
||||
Var ToggleAfterEventProfileOff = 1
|
||||
|
||||
If ProMelonEnable = 1 Then
|
||||
Var IgnoreProfileFromRunEV = 0
|
||||
SAVELOG "Allow exec cmd brew from event_profile"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
EndIf
|
||||
DEBUGVAR "v966 removed"
|
||||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -2138,7 +2138,7 @@ PRICE "Reset" "-"
|
|||
Var refresh_str = "-RefreshProf"
|
||||
STRCONTAIN refresh_str XMLProfile HasRefreshProf
|
||||
If HasRefreshProf = "true" Then
|
||||
RebootWithCause "RefreshProf_ProMelon"
|
||||
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
|
|
|||
|
|
@ -34,6 +34,10 @@
|
|||
Open "ROOT/taobin_project/inter/uae_dubai/xml/page_drinkfail_uae.lxml"
|
||||
EndIf
|
||||
|
||||
If CountryName = "Malaysia" Then
|
||||
Open "ROOT/taobin_project/xml/page_drinkfail5.xml"
|
||||
EndIf
|
||||
|
||||
|
||||
If TelephoneNumberProblem = "" Then
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,16 @@
|
|||
|
||||
Var MachineErrorDetailAll = MachineErrorDetailEng
|
||||
|
||||
DEBUGVAR Seeker.CreditCard
|
||||
Var SorryUnexpectedTxt11 = DirImage + "/text11.png"
|
||||
Var SorryFullState = "Enable"
|
||||
If Seeker.CreditCard = 1 Then
|
||||
DEBUGVAR "Fail5::CreditCard"
|
||||
Var SorryUnexpectedTxt11 = DirImage + "/text11_if_credit.png"
|
||||
Var Timeout = 21
|
||||
Var SorryFullState = "Invisible"
|
||||
EndIf
|
||||
DEBUGVAR SorryUnexpectedTxt11
|
||||
|
||||
|
||||
DEBUGVAR TelephoneNumberProblem
|
||||
|
|
@ -94,20 +104,22 @@
|
|||
|
||||
|
||||
<Image>
|
||||
<X> 43 </X>
|
||||
<X> 0 </X>
|
||||
<Y> 428 </Y>
|
||||
<Filename> Var( DirImage + "/text11.png" ) </Filename>
|
||||
<Filename> SorryUnexpectedTxt11 </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 429 </X>
|
||||
<Y> 1351 </Y>
|
||||
<State> SorryFullState </State>
|
||||
<Filename> Var( DirImage + "/QR_contract.png" ) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 190 </X>
|
||||
<Y> 1598 </Y>
|
||||
<State> SorryFullState </State>
|
||||
<Filename> Var( DirImage + "/text13.png" ) </Filename>
|
||||
</Image>
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue