add profiles flag

This commit is contained in:
Pakin 2023-11-09 11:19:18 +07:00
parent 841c73ca8e
commit 391b7922c2
3 changed files with 33 additions and 10 deletions

View file

@ -923,21 +923,27 @@
STRCONTAIN "y18IDCardLive" XMLProfile Y18IDCARDLIVE_ENABLE
STRCONTAIN "y18IDCard" XMLProfile Y18IDCARD_ENABLE
STRCONTAIN "y20IDCard-Liveness" XMLProfile Y20IDCARDLIVE_ENABLE
STRCONTAIN "y20IDCard" XMLProfile Y20IDCARD_ENABLE
STRCONTAIN "SugarBreak" XMLProfile SugarBreakEnable
STRCONTAIN "Discount50" XMLProfile Discount50
STRCONTAIN "ClossMenu" XMLProfile ClossMenu
; 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 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"
@ -946,6 +952,21 @@
Var Only18 = "false"
EndIf
If Y20IDCARDLIVE_ENABLE = "true" Then
Var EnableLiveness = "true"
Var Only20 = "true"
Else
Var EnableLiveness = "false"
Var Only20 = "false"
EndIf
If Y20IDCARD_ENABLE = "true" Then
Var Only20 = "true"
; MenuProfile
Else
Var Only20 = "false"
EndIf
; Only get 1,2,3
If SugarBreakEnable = "true" Then
Var NoSugarStepRight2 = "true"
@ -963,6 +984,8 @@
DEBUGVAR Discount50
EndIf
; If ClossMenu = "true"
Var NETCORE_LOST_COUNT_UP = 0
</EventOpen>

View file

@ -51,7 +51,7 @@
Open "ROOT/taobin_project/xml/page_topping_select8.xml"
EndIf
If Only18 = "true" Then
If Only20 = "true" Then
Open "ROOT/taobin_project/xml/page_topping_select7_copy.xml"
Else
If NoSugarStepRight2 = "true" Then

View file

@ -388,7 +388,7 @@
EndIf
EndIf
If Only18 = "true" Then
If Only20 = "true" Then
DEBUGVAR SelectDrink
MenuProfile SelectDrink "IsMenuInProfile"