taobin_project/xml/page_spiral_sell.xml

112 lines
2.6 KiB
XML
Raw Normal View History

2025-04-30 10:48:55 +07:00
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
;<Sound> "ROOT/taobin_project/sounds/chaching.mp3" </Sound>
<Volume> SoundVolume </Volume>
<EventOpen>
2025-05-13 00:01:29 +07:00
SAVELOG " spiral sell v3"
2025-04-30 16:56:49 +07:00
2025-04-30 10:48:55 +07:00
Var Timeout = 0
Var LastMakeSpiralResult = 0
2025-04-30 16:56:49 +07:00
Var ShowSwapVDO = "ROOT/taobin_project/spiral/video/sp01.mp4"
2025-04-30 10:48:55 +07:00
GenHashWithTimeStamp SpiralRef
2025-04-30 18:50:34 +07:00
Var Seeker.sprial_product_code = LinkProductCodeAnotherMachine[0]
DEBUGVAR Seeker.sprial_product_code
Var ServiceCredit = Seeker.sprial_product_code
2025-04-30 10:48:55 +07:00
SPIRAL_SELL ServiceCredit SpiralRef
Var TimeOutSmoothiesProcess = 120
2025-05-13 00:01:29 +07:00
2025-05-02 16:10:03 +07:00
DEBUGVAR Seeker.SmoothieToPayment
2025-04-30 10:48:55 +07:00
</EventOpen>
<Timeout> 1000 </Timeout>
2025-04-30 16:56:49 +07:00
<EventTimeout>
2025-04-30 10:48:55 +07:00
Var Timeout = Timeout + 1
2025-04-30 16:56:49 +07:00
; test
;If Timeout > 10 Then
; Var LastMakeSpiralResult = 2
;EndIf
2025-05-02 11:34:55 +07:00
DEBUGVAR LastMakeSpiralResult
2025-04-30 10:48:55 +07:00
If LastMakeSpiralResult = 1 Then
Var SessionID4 = MachineSpiralID
Var SessionID4 = SessionID4 + ":"
Var SessionID4 = SessionID4 + MachineSpiralVMName
Var SessionID4 = SessionID4 + ":"
Var SessionID4 = SessionID4 + MachineSpiralSlotID
Var SessionID4 = SessionID4 + ":"
2025-04-30 17:17:48 +07:00
Var SessionID4 = SessionID4 + ServiceCredit
2025-04-30 10:48:55 +07:00
Var SessionID4 = SessionID4 + ":"
Var SessionID4 = SessionID4 + 1
Var SessionID4 = SessionID4 + ":"
Var SessionID4 = SessionID4 + MachineSpiralRemaining
2025-05-02 16:10:03 +07:00
Var SpiralPayDetail="locker:S:0:"
Var SpiralPayDetail = SpiralPayDetail + SessionID4
DEBUGVAR SpiralPayDetail
2025-05-07 15:58:47 +07:00
Var Seeker.sprial_pay_detail = SpiralPayDetail
2025-04-30 16:56:49 +07:00
2025-05-13 00:01:29 +07:00
If Seeker = "next" Then
Var NextOrder = "true"
Var NextSmoothie = 1
Open "ROOT/taobin_project/xml/page_spiral_before_conti.xml"
EndIf
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
Open "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
2025-04-30 10:48:55 +07:00
EndIf
If LastMakeSpiralResult = 2 Then
2025-04-30 16:56:49 +07:00
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/process/spiral_pay_fail.ev"
2025-04-30 10:48:55 +07:00
2025-04-30 16:56:49 +07:00
Open "ROOT/taobin_project/xml/page_spiral_failed.xml"
2025-04-30 10:48:55 +07:00
EndIf
2025-04-30 16:56:49 +07:00
If Timeout > 120 Then
2025-04-30 10:48:55 +07:00
2025-04-30 16:56:49 +07:00
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/process/spiral_pay_fail.ev"
2025-04-30 18:50:34 +07:00
Open "ROOT/taobin_project/xml/page_spiral_failed.xml"
2025-04-30 10:48:55 +07:00
EndIf
TimerReset
Refresh
2025-04-30 16:56:49 +07:00
</EventTimeout>
2025-04-30 10:48:55 +07:00
<Video>
<X> 0 </X>
<Y> 700 </Y>
<Width> 1080</Width>
<Height> 840 </Height>
<Refresh> "Reload" </Refresh>
<Loop> "true" </Loop>
<Filename> ShowSwapVDO </Filename>
;<Filename> "ROOT/taobin_project/spiral/video/sp01.mp4" </Filename>
</Video>
<EventActionOk>
</EventActionOk>
;include="ROOT/taobin_project/inc/video.inc"
2025-05-07 15:58:47 +07:00
</Popup>