diff --git a/xml/page_board.xml b/xml/page_board.xml index c1cf1925..364b3877 100644 --- a/xml/page_board.xml +++ b/xml/page_board.xml @@ -925,31 +925,52 @@ ; Var XMLProfile = "y18IDCard" ; Var XMLProfile = "y18IDCardLive" ; Var XMLProfile = "SugarBreak" - Var XMLProfile = "discount50" + + ; test action + ReadProfile "ROOT/xmlprofile/main.json" "XMLProfile" + DEBUGVAR XMLProfile + + ; Var XMLProfile = "Discount50" STRCONTAIN "y18IDCardLive" XMLProfile Y18IDCARDLIVE_ENABLE STRCONTAIN "y18IDCard" XMLProfile Y18IDCARD_ENABLE STRCONTAIN "SugarBreak" XMLProfile SugarBreakEnable - STRCONTAIN "discount50" XMLProfile Discount50 + STRCONTAIN "Discount50" XMLProfile Discount50 + + DEBUGVAR EnableLiveness + DEBUGVAR Only18 + DEBUGVAR NoSugarStepRight2 + DEBUGVAR HalfPrice + If Y18IDCARDLIVE_ENABLE = "true" Then Var EnableLiveness = "true" Var Only18 = "true" + Else + Var EnableLiveness = "false" + Var Only18 = "false" EndIf If Y18IDCARD_ENABLE = "true" Then Var Only18 = "true" + Else + Var Only18 = "false" EndIf ; Only get 1,2,3 If SugarBreakEnable = "true" Then Var NoSugarStepRight2 = "true" + Else + Var NoSugarStepRight2 = "false" EndIf If Discount50 = "true" Then - ;Var HalfPrice = "true" + Var HalfPrice = "true" Var InvokeDiscountCMD = "true" DEBUGVAR InvokeDiscountCMD __CMD "invoke-discount-50" "-" "-" "-" + Else + Var HalfPrice = "false" + DEBUGVAR Discount50 EndIf DEBUGVAR EnableLiveness