adddata after pay

This commit is contained in:
miggaze 2021-01-21 15:18:23 +07:00
parent 5ddf97c93c
commit 18ba180b12
5 changed files with 67 additions and 2 deletions

View file

@ -24,6 +24,12 @@
Play "ROOT/taobin_project/sound_thai/thankyou.mp3"
EndIf
Var waitAckPay = 0
Var VendingTSIDTmp = ""
If PayWithQR = 1 Then
Var VendingTSIDTmp = VendingTSID
EndIf
</EventOpen>
@ -75,6 +81,11 @@
EndIf
EndIf
If waitAckPay = 1 Then
Open "ROOT/taobin_project/xml/page_drinkok.xml"
EndIf
</EventActionOk>
<EventActionError>
@ -164,6 +175,14 @@
Var ChangeTimeout = ChangeTimeout + 1
EndIf
If waitAckPay = 1 Then
If Timeout > 60 Then
Var VendingTSID = ""
Open "ROOT/taobin_project/xml/page_drinkok.xml"
EndIf
EndIf
If ChangeOK = 2 Then
If ActionOKCase = 0 Then
@ -235,6 +254,9 @@
If MachineState_Result = 1 Then
If waitAckPay = 0 Then
Var waitAckPay = 1
Var Timeout = 0
Var ProcessText = ""
@ -292,13 +314,20 @@
Var SessionID2 = SelectDrink
Var ServiceCredit = "coffee"
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
Else
;no wait ack pay
Var waitAckPay = 0
EndIf
EndIf
EndIf
Var ServiceSuccess = "yes"
Open "ROOT/taobin_project/xml/page_drinkok.xml"
If waitAckPay = 0 Then
Open "ROOT/taobin_project/xml/page_drinkok.xml"
EndIf
EndIf