handle cache value case
This commit is contained in:
parent
cdcbb550b9
commit
3e9312dc30
1 changed files with 24 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue