THA: Changed get discount condition

This commit is contained in:
Kenta420 2025-07-01 11:10:09 +07:00
parent b0f959d9cf
commit 7a86a84e92
3 changed files with 46 additions and 21 deletions

View 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

View file

@ -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

View file

@ -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"