THA: Changed get discount condition
This commit is contained in:
parent
b0f959d9cf
commit
7a86a84e92
3 changed files with 46 additions and 21 deletions
41
xml/event/7.7_up_to_35/can_get_code.ev
Normal file
41
xml/event/7.7_up_to_35/can_get_code.ev
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
If Discount7_7Pro = 1 Then
|
||||
SAVELOG "Discount7_7Pro"
|
||||
Var canGetCode = 0
|
||||
|
||||
If Seeker.CodeChannel = 1 Then
|
||||
If Seeker.VendingCode = "PX1" Then
|
||||
Var canGetCode = 1
|
||||
EndIf
|
||||
|
||||
If Seeker.VendingCode = "PX15" Then
|
||||
Var canGetCode = 1
|
||||
EndIf
|
||||
|
||||
If Seeker.VendingCode = "PX2" Then
|
||||
Var canGetCode = 1
|
||||
EndIf
|
||||
|
||||
If Seeker.VendingCode = "PX25" Then
|
||||
Var canGetCode = 1
|
||||
EndIf
|
||||
|
||||
If Seeker.VendingCode = "PX3" Then
|
||||
Var canGetCode = 1
|
||||
EndIf
|
||||
|
||||
If Seeker.VendingCode = "PX35" Then
|
||||
Var canGetCode = 1
|
||||
EndIf
|
||||
|
||||
DEBUGVAR Seeker.VendingCode
|
||||
DEBUGVAR canGetCode
|
||||
Else
|
||||
Var canGetCode = 1
|
||||
EndIf
|
||||
|
||||
If canGetCode = 1 Then
|
||||
SAVELOG "7.7 Discount level collect point"
|
||||
GETACCEXT TelephoneNumber 44
|
||||
Open "ROOT/taobin_project/xml/event/7.7_up_to_35/page_collect_point_pro_7_7_2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
|
@ -305,6 +305,7 @@ STRCONTAIN "taobin_nopro" XMLProfile taobin_nopro
|
|||
If taobin_nopro = "true" Then
|
||||
Var AdvertiseProfile = "00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00"
|
||||
|
||||
Var Discount7_7Pro = 0
|
||||
EndIf
|
||||
|
||||
; zone block logic follow ingredent
|
||||
|
|
|
|||
|
|
@ -190,13 +190,8 @@
|
|||
Var Param1 = TelephoneNumber + "/"
|
||||
Var Param1 = Param1 + ParamCP
|
||||
|
||||
If Seeker.CodeChannel = 0 Then
|
||||
If Discount7_7Pro = 1 Then
|
||||
SAVELOG "7.7 Discount level collect point"
|
||||
GETACCEXT TelephoneNumber 44
|
||||
Open "ROOT/taobin_project/xml/event/7.7_up_to_35/page_collect_point_pro_7_7_2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/7.7_up_to_35/can_get_code.ev"
|
||||
|
||||
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
|
|
@ -225,13 +220,7 @@
|
|||
Var Param1 = TelephoneNumber + "/"
|
||||
Var Param1 = Param1 + ParamCP
|
||||
|
||||
If Seeker.CodeChannel = 0 Then
|
||||
If Discount7_7Pro = 1 Then
|
||||
SAVELOG "7.7 Discount level collect point"
|
||||
GETACCEXT TelephoneNumber 44
|
||||
Open "ROOT/taobin_project/xml/event/7.7_up_to_35/page_collect_point_pro_7_7_2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/7.7_up_to_35/can_get_code.ev"
|
||||
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
|
|
@ -692,13 +681,7 @@
|
|||
Var Param1 = TelephoneNumber + "/"
|
||||
Var Param1 = Param1 + ParamCP
|
||||
|
||||
If Seeker.CodeChannel = 0 Then
|
||||
If Discount7_7Pro = 1 Then
|
||||
SAVELOG "7.7 Discount level collect point"
|
||||
GETACCEXT TelephoneNumber 44
|
||||
Open "ROOT/taobin_project/xml/event/7.7_up_to_35/page_collect_point_pro_7_7_2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/7.7_up_to_35/can_get_code.ev"
|
||||
|
||||
GETACCEXT Param1 23
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue