From 73e9f924c54851e3d488ca68dc41f1edea1b4ff8 Mon Sep 17 00:00:00 2001 From: Pakin Date: Fri, 17 Nov 2023 14:17:38 +0700 Subject: [PATCH] change Y20liveness cond, remove cond --- xml/page_board.xml | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/xml/page_board.xml b/xml/page_board.xml index 020f7d2d..40dffdf7 100644 --- a/xml/page_board.xml +++ b/xml/page_board.xml @@ -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"