ignore old verify
This commit is contained in:
parent
d73f5e9e76
commit
ba515e192a
3 changed files with 105 additions and 43 deletions
|
|
@ -63,7 +63,11 @@
|
|||
Var Timeout = 0
|
||||
Var ShutterResult = "-"
|
||||
|
||||
Var AdultFlag = 1
|
||||
;Var AdultFlag = 1
|
||||
If Only18 = "true" Then
|
||||
Var AdultFlag = 0
|
||||
EndIf
|
||||
DEBUGVAR AdultFlag
|
||||
|
||||
If AdultFlag = 1 Then
|
||||
|
||||
|
|
@ -88,6 +92,8 @@
|
|||
Var AdultFlag2 = 1
|
||||
EndIf
|
||||
|
||||
DEBUGVAR AdultState1
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/page_payment_en/page_payment"
|
||||
Var DirImage2 = "ROOT/taobin_project/image/page_payment_cash_extend_en"
|
||||
|
|
@ -419,6 +425,17 @@
|
|||
<Y> 888 </Y>
|
||||
<Width>180</Width>
|
||||
<Height>180</Height>
|
||||
<State> eval(
|
||||
If Only18 = "true" Then
|
||||
|
||||
If EnableLiveness = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
) </State>
|
||||
<Filename> "ROOT/taobin_project/image/liveness/arrow_up.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/liveness/arrow_up.png" </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
|
|
@ -443,6 +460,17 @@
|
|||
<Y> 1249 </Y>
|
||||
<Width>180</Width>
|
||||
<Height>180</Height>
|
||||
<State> eval(
|
||||
If Only18 = "true" Then
|
||||
|
||||
If EnableLiveness = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
) </State>
|
||||
<Filename> "ROOT/taobin_project/image/liveness/arrow_down.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/liveness/arrow_down.png" </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
|
|
@ -468,6 +496,17 @@
|
|||
<Y> 888 </Y>
|
||||
<Width>180</Width>
|
||||
<Height>180</Height>
|
||||
<State> eval(
|
||||
If Only18 = "true" Then
|
||||
|
||||
If EnableLiveness = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
) </State>
|
||||
<Filename> "ROOT/taobin_project/image/liveness/arrow_up.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/liveness/arrow_up.png" </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
|
|
@ -492,6 +531,17 @@
|
|||
<Y> 1249 </Y>
|
||||
<Width>180</Width>
|
||||
<Height>180</Height>
|
||||
<State> eval(
|
||||
If Only18 = "true" Then
|
||||
|
||||
If EnableLiveness = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
) </State>
|
||||
<Filename> "ROOT/taobin_project/image/liveness/arrow_down.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/liveness/arrow_down.png" </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
|
|
@ -531,6 +581,17 @@
|
|||
<Height> KornCameraXH </Height>
|
||||
;800
|
||||
; Display height is about 680, (full height = 888)
|
||||
<State> eval(
|
||||
If Only18 = "true" Then
|
||||
|
||||
If EnableLiveness = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
) </State>
|
||||
<LivenessParameterWhenOK> "FileName=/mnt/sdcard/camera1_alter.jpg" </LivenessParameterWhenOK>
|
||||
</CameraX>
|
||||
|
||||
|
|
@ -605,7 +666,9 @@
|
|||
EndIf
|
||||
|
||||
If LivenessResult = "pass" Then
|
||||
|
||||
DEBUGVAR AdultFlag
|
||||
DEBUGVAR AdultState1
|
||||
Open "ROOT/taobin_project/xml/page_payment.xml"
|
||||
Else
|
||||
Var LivenessShowString = LivenessStateString
|
||||
EndIf
|
||||
|
|
|
|||
|
|
@ -33,26 +33,31 @@
|
|||
|
||||
Var AdultFlag = 0
|
||||
|
||||
If SelectDrink = "12-05-02-0028" Then
|
||||
Var AdultFlag = 1
|
||||
EndIf
|
||||
If SelectDrink = "12-05-02-0029" Then
|
||||
Var AdultFlag = 1
|
||||
EndIf
|
||||
If SelectDrink = "12-05-03-0028" Then
|
||||
Var AdultFlag = 1
|
||||
EndIf
|
||||
If SelectDrink = "12-05-03-0029" Then
|
||||
Var AdultFlag = 1
|
||||
EndIf
|
||||
If SelectDrink = "12-02-01-0017" Then
|
||||
Var AdultFlag = 1
|
||||
EndIf
|
||||
If SelectDrink = "12-05-02-0027" Then
|
||||
Var AdultFlag = 1
|
||||
EndIf
|
||||
If SelectDrink = "12-05-03-0027" Then
|
||||
Var AdultFlag = 1
|
||||
If Only18 = "true" Then
|
||||
DEBUGVAR AdultState1
|
||||
DEBUGVAR AdultFlag
|
||||
Else
|
||||
If SelectDrink = "12-05-02-0028" Then
|
||||
Var AdultFlag = 1
|
||||
EndIf
|
||||
If SelectDrink = "12-05-02-0029" Then
|
||||
Var AdultFlag = 1
|
||||
EndIf
|
||||
If SelectDrink = "12-05-03-0028" Then
|
||||
Var AdultFlag = 1
|
||||
EndIf
|
||||
If SelectDrink = "12-05-03-0029" Then
|
||||
Var AdultFlag = 1
|
||||
EndIf
|
||||
If SelectDrink = "12-02-01-0017" Then
|
||||
Var AdultFlag = 1
|
||||
EndIf
|
||||
If SelectDrink = "12-05-02-0027" Then
|
||||
Var AdultFlag = 1
|
||||
EndIf
|
||||
If SelectDrink = "12-05-03-0027" Then
|
||||
Var AdultFlag = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If CustomerFilterEnable = "YES" Then
|
||||
|
|
@ -459,6 +464,11 @@
|
|||
|
||||
EndIf
|
||||
|
||||
|
||||
If Only18 = "true" Then
|
||||
Var AdultFlag = 0
|
||||
EndIf
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_payment_cash.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
|
|
|||
|
|
@ -388,35 +388,24 @@
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
; If RestrictedDrink = "true" Then
|
||||
; DEBUGVAR RestrictedDrink
|
||||
; OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
|
||||
; Open "ROOT/taobin_project/xml/page_identity_verification.xml"
|
||||
|
||||
; Else
|
||||
|
||||
; ;DEBUGVAR UserSelectProductCode.Price
|
||||
; ; DEBUGVAR HalfPrice
|
||||
; ;DEBUGVAR PriceDrink
|
||||
|
||||
; ;If HalfPrice = "true" Then
|
||||
|
||||
; ; Var PriceDrinkTmp = UserSelectProductCode.Price
|
||||
; ; Var PriceDrink = PriceDrinkTmp
|
||||
; ;EndIf
|
||||
|
||||
; OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
|
||||
; Open "ROOT/taobin_project/xml/page_payment.xml"
|
||||
; EndIf
|
||||
|
||||
If Only18 = "true" Then
|
||||
DEBUGVAR SelectDrink
|
||||
MenuProfile SelectDrink "IsMenuInProfile"
|
||||
|
||||
; disable old verification
|
||||
Var AdultState1 = "Invisible"
|
||||
|
||||
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
|
||||
|
||||
Else
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
|
||||
Open "ROOT/taobin_project/xml/page_payment.xml"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue