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