clean code thankyou
This commit is contained in:
parent
a54978e5c6
commit
dab1024e2c
7 changed files with 80 additions and 39 deletions
|
|
@ -74,31 +74,26 @@
|
|||
If Seeker = "curr" Then
|
||||
SAVELOG "Call from thankyou Conti"
|
||||
|
||||
If Seeker.get_a_straw = "Press" Then
|
||||
Machine StrawOrder
|
||||
Var LedLidBlink = "true"
|
||||
Var SaveTheWorldCount = SaveTheWorldCount + 1
|
||||
|
||||
If PaySuccessWithDaemonTask = 1 Then
|
||||
|
||||
Else
|
||||
If Seeker.get_a_straw = "Press" Then
|
||||
Machine StrawOrder
|
||||
Var LedLidBlink = "true"
|
||||
Var SaveTheWorldCount = SaveTheWorldCount + 1
|
||||
|
||||
Var bg_lidProblem_ST = "Invisible"
|
||||
EndIf
|
||||
|
||||
If Seeker.get_a_lid = "Press" Then
|
||||
Machine LidOrder
|
||||
Var LedLidBlink = "true"
|
||||
Var SaveTheWorldCount = SaveTheWorldCount + 1
|
||||
|
||||
Var bg_lidProblem_ST = "Enable"
|
||||
EndIf
|
||||
|
||||
;include="ROOT/taobin_project/inc/select_drink_current.inc"
|
||||
|
||||
|
||||
Topping "ClearNextOrder" "-"
|
||||
Var bg_lidProblem_ST = "Invisible"
|
||||
EndIf
|
||||
|
||||
If Seeker.get_a_lid = "Press" Then
|
||||
Machine LidOrder
|
||||
Var LedLidBlink = "true"
|
||||
Var SaveTheWorldCount = SaveTheWorldCount + 1
|
||||
|
||||
Var bg_lidProblem_ST = "Enable"
|
||||
EndIf
|
||||
|
||||
;include="ROOT/taobin_project/inc/select_drink_current.inc"
|
||||
|
||||
|
||||
Topping "ClearNextOrder" "-"
|
||||
EndIf
|
||||
|
||||
|
||||
|
|
@ -126,7 +121,13 @@
|
|||
|
||||
;include=ROOT/taobin_project/inc/remove_cup_event_open.inc
|
||||
|
||||
SAVELOG "Thank you conti version 1"
|
||||
|
||||
;PendingFlag InternationalEnable
|
||||
;PendingFlag New_Payment
|
||||
;PendingFlag New_Payment
|
||||
|
||||
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
|
|
@ -224,21 +225,23 @@
|
|||
Var MachineState_Result = 0
|
||||
|
||||
If MachineStage = "show-menu" Then
|
||||
If PaySuccessWithDaemonTask = 1 Then
|
||||
|
||||
Else
|
||||
Var LastMakeDrinkResult = "-"
|
||||
If New_Payment = 1 Then
|
||||
__CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID
|
||||
EndIf
|
||||
MakeDrinkV1 Seeker.selected_a_drink SelectSugarID
|
||||
|
||||
Var LastMakeDrinkResult = "-"
|
||||
If New_Payment = 1 Then
|
||||
__CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID
|
||||
EndIf
|
||||
MakeDrinkV1 Seeker.selected_a_drink SelectSugarID
|
||||
|
||||
EndIf
|
||||
|
||||
If InternationalEnable = 1 Then
|
||||
Var Brew3Inter = CountryRootPath + "/xml/page_brewing3.lxml"
|
||||
Open Brew3Inter
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_brewing3.xml"
|
||||
If New_Payment = 1 Then
|
||||
Open "ROOT/taobin_project/xml/page_NewBrewing3.xml"
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_brewing3.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
|
@ -348,7 +351,7 @@
|
|||
<Width> 1080 </Width>
|
||||
<Align> end </Align>
|
||||
<Color> 0xFF0000 </Color>
|
||||
<Value> "THK"</Value>
|
||||
<Value> "TCT1"</Value>
|
||||
</Text>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue