add send data coupon discount

This commit is contained in:
Pakin 2023-09-29 11:31:51 +07:00
parent 1320a5fd19
commit cc169b233b
2 changed files with 128 additions and 22 deletions

View file

@ -29,35 +29,16 @@
<EventTimeout>
DEBUGVAR Timeout
If PayOfflineMode = 1 Then
Var ServerRespond = 0
Var CouponResponeFailed = 1
EndIf
If Timeout > 60 Then
If Timeout > 5 Then
; Check and return Error
Var CouponResponeFailed = 1
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_error.xml"
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
<EventActionOk>
If CouponResponeFailed = 0 Then
; TODO:
;Open "ROOT/taobin_project/xml/event/pepween/page_pepween_error.xml"
EndIf
</EventActionOk>
<EventActionError>
; TODO: open coupon send error page
If CouponResponeFailed = 1 Then
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_error.xml"
EndIf
</EventActionError>
<Video>
<X> 0 </X>