disable debugvar, add adult err page

This commit is contained in:
Pakin 2023-11-08 15:28:56 +07:00
parent ba515e192a
commit f5c5c6a107
3 changed files with 88 additions and 17 deletions

70
xml/page_adult_error.xml Normal file
View file

@ -0,0 +1,70 @@
; From y18IDCardLive, if the menu is not for sale
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Volume> SoundVolume </Volume>
<EventOpen>
</EventOpen>
; Ad
<Video>
<X> 0 </X>
<Y> 0 </Y>
<Width> 1080</Width>
<Height> 380 </Height>
<Loop> "true" </Loop>
<Filename> video_menu_0 </Filename>
</Video>
; Background
<Image>
<X> 0 </X>
<Y> 380 </Y>
<Width> 1080 </Width>
<Height> 1540 </Height>
<Color> "0xeae6e1" </Color>
</Image>
<Button>
<X> 19 </X>
<Y> 381 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow_2.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow_2.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
If SpiralOnline = "true" Then
If Seeker = "curr" Then
Open "ROOT/taobin_project/xml/page_catalog_with_vending.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog.xml"
EndIf
Else
Open "ROOT/taobin_project/xml/page_catalog.xml"
EndIf
</EventClick>
</Button>
; Display not sale
<Text>
<X> 250 </X>
<Y> 1000 </Y>
<Size> 32 </Size>
<Width> 500 </Width>
<Height> 64 </Height>
<Font> MITRegularTTF </Font>
<Color> 0x5A5A5A </Color>
<Value> "This menu is unavailable" </Value>
<Align> center-vertical-horizontal </Align>
</Text>
<EventUnitTest1>
Open "ROOT/taobin_project/xml/page_board.xml"
</EventUnitTest1>
</Popup>

View file

@ -927,10 +927,10 @@
STRCONTAIN "Discount50" XMLProfile Discount50
DEBUGVAR EnableLiveness
DEBUGVAR Only18
DEBUGVAR NoSugarStepRight2
DEBUGVAR HalfPrice
; DEBUGVAR EnableLiveness
; DEBUGVAR Only18
; DEBUGVAR NoSugarStepRight2
; DEBUGVAR HalfPrice
If Y18IDCARDLIVE_ENABLE = "true" Then
Var EnableLiveness = "true"
Var Only18 = "true"
@ -1008,7 +1008,7 @@
;DEBUGVAR 12-02-01-0021.Price
;DEBUGVAR $12-02-01-0021.Price
DEBUGVAR XMLProfile
; DEBUGVAR XMLProfile
; test
; Var XMLProfile = "y18IDCard"
; Var XMLProfile = "y18IDCardLive"
@ -1031,18 +1031,18 @@
__CMD "invoke-discount-50" "-" "-" "-"
Var InvokeDiscountCMD = "true"
Else
DEBUGVAR InvokeDiscountCMD
; DEBUGVAR InvokeDiscountCMD
EndIf
Else
Var HalfPrice = "false"
DEBUGVAR Discount50
; DEBUGVAR Discount50
EndIf
DEBUGVAR EnableLiveness
DEBUGVAR Only18
DEBUGVAR NoSugarStepRight2
DEBUGVAR HalfPrice
; DEBUGVAR EnableLiveness
; DEBUGVAR Only18
; DEBUGVAR NoSugarStepRight2
; DEBUGVAR HalfPrice
DEBUGVAR WebAppShow
If IgnoreNetCore = "true" Then

View file

@ -398,13 +398,14 @@
DEBUGVAR IsMenuInProfile
If IsMenuInProfile = "true" Then
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
Open "ROOT/taobin_project/xml/page_identity_verification.xml"
;If EnableLiveness = "true" Then
;EndIf
If EnableLiveness = "true" Then
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
Open "ROOT/taobin_project/xml/page_adult_error.xml"
Else
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
Open "ROOT/taobin_project/xml/page_identity_verification.xml"
EndIf
Else
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"