Smoothies test

This commit is contained in:
wanlop run 2025-04-09 19:08:14 +07:00
parent 9b1edbd723
commit 8509bceede
5 changed files with 64 additions and 22 deletions

View file

@ -24,7 +24,9 @@
Var ProcessCupDebugText = ""
Var TimeOutSmoothiesProcess = 3
Var TimeOutSmoothiesProcess = 2
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
@ -32,13 +34,37 @@
;SAVELOG SoundPlaying
If TimeOutSmoothiesProcess > 0 Then
Var TimeOutSmoothiesProcess = countDownRetrun - 1
Var TimeOutSmoothiesProcess = TimeOutSmoothiesProcess - 1
EndIf
If TimeOutSmoothiesProcess = 0 Then
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
Var RemainAmountStr = "Free###size=150"
If RoadShowMarketCode = "" Then
Var RoadShowMarketCode = ""
EndIf
Var Seeker.VendingCode = RoadShowMarketCode
DEBUGVAR RoadShowMarketCode
Var Seeker.IntVendingCampaign = PriceDrink
Var Seeker.FreeVendingCampaign = 1
Var Seeker.CodeChannel = 1
Var Seeker.CodeNumber = IDNum
SAVELOG "ModeFreeEnable ModeFreeEnable ModeFreeEnable ModeFreeEnable ModeFreeEnable"
If New_Payment = 1 Then
Var Seeker.ORDER_ID = ""
GenHashWithTimeStamp Seeker.ORDER_ID
__CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID
EndIf
Open "ROOT/taobin_project/xml/page_payment_cash.xml"
EndIf

View file

@ -54,7 +54,7 @@
Var ProcessCupDebugText = ""
Var TimeOutSmoothiesProcess = 120
Var TextDoorButtonID = 001201
Var TextDoorButtonID = 001202
Var SmoothieProcessState = "idle"
Var CountDownCertainConfuse = 5
@ -143,8 +143,29 @@
If SmoothieProcessState = "blendnow" Then
Var TextDoorButtonID = 001206
Var SelectDrink = "12-01-07-0001"
Var SelectSugarID = ""
Topping "Select" SelectDrink
Var SmoothieProcessState = "blending"
EndIf
If SmoothieProcessState = "blending" Then
MakeDrinkV1 SelectDrink SelectSugarID
Menu "set-name" "Smoothie "
Menu "set-image" Seeker.PictureDrink
Open "ROOT/taobin_project/inter/tha/xml/page_payment_pack_and_send.xml"
EndIf
DEBUGVAR TextDoorButtonID
Refresh