change Y20liveness cond, remove cond

This commit is contained in:
Pakin 2023-11-17 14:17:38 +07:00
parent c5b71bacfa
commit 73e9f924c5

View file

@ -937,15 +937,32 @@
DEBUGVAR EnableJsonProfileMode
DEBUGVAR IsServerProfileApplyMode
If EnableJsonProfileMode = "true" Then
; If EnableJsonProfileMode = "true" Then
ReadProfile "ROOT/xmlprofile/main.json" "XMLProfileFromJson"
DEBUGVAR XMLProfile
DEBUGVAR XMLProfileFromJson
; Force mode, use "SERVER_OVERWRITE" as param
; Otherwise, this will use local as main diff
;
; Example 1
; Local diff with XMLProfile (External)
; External: 1-2-3
; Local: 1-2-3-4-5-6
; Result: 1-2-3
;
; Example 2
; External: A-B-C
; Local: 1-2-3-4-5-6
; Result: A-B-C
CompareJsonProfileToServerProfile "-"
;
;
;
;
; XMLProfile must contain at least 1 profile to make this `IsServerProfileApplyMode` to not be "Ignore"
@ -1005,10 +1022,14 @@
EndIf
If Y20IDCARDLIVE_ENABLE = "true" Then
Var EnableLiveness = "true"
Var Only20 = "true"
; Var EnableLiveness = "true"
If EnableLiveness = "true" Then
Var Only20 = "true"
Else
Var Only20 = "false"
EndIf
Else
Var EnableLiveness = "false"
; Var EnableLiveness = "false"
Var Only20 = "false"
EndIf
@ -1036,7 +1057,7 @@
DEBUGVAR Discount50
EndIf
EndIf
; EndIf
; If ClossMenu = "true"