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

View file

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

View file

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