diff --git a/image/collectiing/bd_pay_with_codeLH.png b/image/collectiing/bd_pay_with_codeLH.png new file mode 100644 index 00000000..4cb3d211 Binary files /dev/null and b/image/collectiing/bd_pay_with_codeLH.png differ diff --git a/image/collectiing/bd_pay_with_dolfin.png b/image/collectiing/bd_pay_with_dolfin.png new file mode 100644 index 00000000..a5511d3b Binary files /dev/null and b/image/collectiing/bd_pay_with_dolfin.png differ diff --git a/image/collectiing/bn_pay_with_codeLH.png b/image/collectiing/bn_pay_with_codeLH.png new file mode 100644 index 00000000..89d09827 Binary files /dev/null and b/image/collectiing/bn_pay_with_codeLH.png differ diff --git a/image/collectiing/bn_pay_with_dolfin.png b/image/collectiing/bn_pay_with_dolfin.png new file mode 100644 index 00000000..dbcd3d55 Binary files /dev/null and b/image/collectiing/bn_pay_with_dolfin.png differ diff --git a/image/collectiing/bn_pay_with_shoppy.png b/image/collectiing/bn_pay_with_shoppy.png new file mode 100644 index 00000000..336b402a Binary files /dev/null and b/image/collectiing/bn_pay_with_shoppy.png differ diff --git a/image/collectiing/bn_pay_with_true.png b/image/collectiing/bn_pay_with_true.png new file mode 100644 index 00000000..8a1c0890 Binary files /dev/null and b/image/collectiing/bn_pay_with_true.png differ diff --git a/image/collectiing/bp_pay_with_codeLH.png b/image/collectiing/bp_pay_with_codeLH.png new file mode 100644 index 00000000..f80d05a7 Binary files /dev/null and b/image/collectiing/bp_pay_with_codeLH.png differ diff --git a/image/collectiing/bp_pay_with_dolfin.png b/image/collectiing/bp_pay_with_dolfin.png new file mode 100644 index 00000000..426e726b Binary files /dev/null and b/image/collectiing/bp_pay_with_dolfin.png differ diff --git a/image/collectiing/bp_pay_with_shoppy.png b/image/collectiing/bp_pay_with_shoppy.png new file mode 100644 index 00000000..d57e4b12 Binary files /dev/null and b/image/collectiing/bp_pay_with_shoppy.png differ diff --git a/image/collectiing/bp_pay_with_true.png b/image/collectiing/bp_pay_with_true.png new file mode 100644 index 00000000..c3282d59 Binary files /dev/null and b/image/collectiing/bp_pay_with_true.png differ diff --git a/image/collectiing/img_popup16.png b/image/collectiing/img_popup16.png index 46d8eb84..bccdf180 100644 Binary files a/image/collectiing/img_popup16.png and b/image/collectiing/img_popup16.png differ diff --git a/image/collectiing/img_popup17.png b/image/collectiing/img_popup17.png new file mode 100644 index 00000000..5b317f8d Binary files /dev/null and b/image/collectiing/img_popup17.png differ diff --git a/image/collectiing/img_popupLH.png b/image/collectiing/img_popupLH.png new file mode 100644 index 00000000..78242eb8 Binary files /dev/null and b/image/collectiing/img_popupLH.png differ diff --git a/image/collectiing/text_38.png b/image/collectiing/text_38.png new file mode 100644 index 00000000..b524515e Binary files /dev/null and b/image/collectiing/text_38.png differ diff --git a/image/collectiing_en/bd_pay_with_codeLH.png b/image/collectiing_en/bd_pay_with_codeLH.png new file mode 100644 index 00000000..4cb3d211 Binary files /dev/null and b/image/collectiing_en/bd_pay_with_codeLH.png differ diff --git a/image/collectiing_en/bd_pay_with_dolfin.png b/image/collectiing_en/bd_pay_with_dolfin.png new file mode 100644 index 00000000..a5511d3b Binary files /dev/null and b/image/collectiing_en/bd_pay_with_dolfin.png differ diff --git a/image/collectiing_en/bn_pay_with_codeLH.png b/image/collectiing_en/bn_pay_with_codeLH.png new file mode 100644 index 00000000..89d09827 Binary files /dev/null and b/image/collectiing_en/bn_pay_with_codeLH.png differ diff --git a/image/collectiing_en/bn_pay_with_dolfin.png b/image/collectiing_en/bn_pay_with_dolfin.png new file mode 100644 index 00000000..dbcd3d55 Binary files /dev/null and b/image/collectiing_en/bn_pay_with_dolfin.png differ diff --git a/image/collectiing_en/bn_pay_with_shoppy.png b/image/collectiing_en/bn_pay_with_shoppy.png new file mode 100644 index 00000000..336b402a Binary files /dev/null and b/image/collectiing_en/bn_pay_with_shoppy.png differ diff --git a/image/collectiing_en/bn_pay_with_true.png b/image/collectiing_en/bn_pay_with_true.png new file mode 100644 index 00000000..8a1c0890 Binary files /dev/null and b/image/collectiing_en/bn_pay_with_true.png differ diff --git a/image/collectiing_en/bp_pay_with_codeLH.png b/image/collectiing_en/bp_pay_with_codeLH.png new file mode 100644 index 00000000..f80d05a7 Binary files /dev/null and b/image/collectiing_en/bp_pay_with_codeLH.png differ diff --git a/image/collectiing_en/bp_pay_with_dolfin.png b/image/collectiing_en/bp_pay_with_dolfin.png new file mode 100644 index 00000000..426e726b Binary files /dev/null and b/image/collectiing_en/bp_pay_with_dolfin.png differ diff --git a/image/collectiing_en/bp_pay_with_shoppy.png b/image/collectiing_en/bp_pay_with_shoppy.png new file mode 100644 index 00000000..d57e4b12 Binary files /dev/null and b/image/collectiing_en/bp_pay_with_shoppy.png differ diff --git a/image/collectiing_en/bp_pay_with_true.png b/image/collectiing_en/bp_pay_with_true.png new file mode 100644 index 00000000..c3282d59 Binary files /dev/null and b/image/collectiing_en/bp_pay_with_true.png differ diff --git a/image/collectiing_en/img_popup16.png b/image/collectiing_en/img_popup16.png index 6db443ff..5b07b38f 100644 Binary files a/image/collectiing_en/img_popup16.png and b/image/collectiing_en/img_popup16.png differ diff --git a/image/collectiing_en/img_popup17.png b/image/collectiing_en/img_popup17.png new file mode 100644 index 00000000..2085dc24 Binary files /dev/null and b/image/collectiing_en/img_popup17.png differ diff --git a/image/collectiing_en/img_popupLH.png b/image/collectiing_en/img_popupLH.png new file mode 100644 index 00000000..78242eb8 Binary files /dev/null and b/image/collectiing_en/img_popupLH.png differ diff --git a/image/collectiing_en/text_38.png b/image/collectiing_en/text_38.png new file mode 100644 index 00000000..3e6f4ded Binary files /dev/null and b/image/collectiing_en/text_38.png differ diff --git a/image/page_payment/bd_pay_with_ewallet.png b/image/page_payment/bd_pay_with_ewallet.png new file mode 100644 index 00000000..41f004b9 Binary files /dev/null and b/image/page_payment/bd_pay_with_ewallet.png differ diff --git a/image/page_payment/bn_pay_with_ewallet.png b/image/page_payment/bn_pay_with_ewallet.png new file mode 100644 index 00000000..5dbfbf30 Binary files /dev/null and b/image/page_payment/bn_pay_with_ewallet.png differ diff --git a/image/page_payment/bp_pay_with_ewallet.png b/image/page_payment/bp_pay_with_ewallet.png new file mode 100644 index 00000000..d457a269 Binary files /dev/null and b/image/page_payment/bp_pay_with_ewallet.png differ diff --git a/image/page_payment/img_popup5.png b/image/page_payment/img_popup5.png new file mode 100644 index 00000000..cfc4b6f4 Binary files /dev/null and b/image/page_payment/img_popup5.png differ diff --git a/image/page_payment/img_popup6.png b/image/page_payment/img_popup6.png new file mode 100644 index 00000000..ca04d2c0 Binary files /dev/null and b/image/page_payment/img_popup6.png differ diff --git a/image/page_payment/unauthorized.png b/image/page_payment/unauthorized.png new file mode 100644 index 00000000..3838e940 Binary files /dev/null and b/image/page_payment/unauthorized.png differ diff --git a/image/page_payment_en/page_payment/bd_pay_with_ewallet.png b/image/page_payment_en/page_payment/bd_pay_with_ewallet.png new file mode 100644 index 00000000..41f004b9 Binary files /dev/null and b/image/page_payment_en/page_payment/bd_pay_with_ewallet.png differ diff --git a/image/page_payment_en/page_payment/bn_pay_with_ewallet.png b/image/page_payment_en/page_payment/bn_pay_with_ewallet.png new file mode 100644 index 00000000..5dbfbf30 Binary files /dev/null and b/image/page_payment_en/page_payment/bn_pay_with_ewallet.png differ diff --git a/image/page_payment_en/page_payment/bp_pay_with_ewallet.png b/image/page_payment_en/page_payment/bp_pay_with_ewallet.png new file mode 100644 index 00000000..d457a269 Binary files /dev/null and b/image/page_payment_en/page_payment/bp_pay_with_ewallet.png differ diff --git a/image/page_payment_en/page_payment/img_popup5.png b/image/page_payment_en/page_payment/img_popup5.png new file mode 100644 index 00000000..e876a9f9 Binary files /dev/null and b/image/page_payment_en/page_payment/img_popup5.png differ diff --git a/image/page_payment_en/page_payment/img_popup6.png b/image/page_payment_en/page_payment/img_popup6.png new file mode 100644 index 00000000..a2a86183 Binary files /dev/null and b/image/page_payment_en/page_payment/img_popup6.png differ diff --git a/image/page_payment_en/page_payment/unauthorized.png b/image/page_payment_en/page_payment/unauthorized.png new file mode 100644 index 00000000..bc36cd3b Binary files /dev/null and b/image/page_payment_en/page_payment/unauthorized.png differ diff --git a/xml/page_collect_point_1.xml b/xml/page_collect_point_1.xml index 9b21fd84..775a13a2 100644 --- a/xml/page_collect_point_1.xml +++ b/xml/page_collect_point_1.xml @@ -19,9 +19,13 @@ If show_eng = "true" Then Var DirImage = "ROOT/taobin_project/image/collect_point1_en" Play "ROOT/taobin_project/sound_eng/Reward_final.mp3" + + Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2_eng.png" Else Var DirImage = "ROOT/taobin_project/image/collect_point1" Play "ROOT/taobin_project/sound_thai/dontforget_number.mp3" + + Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png" EndIf SAVELOG "collect_point1" @@ -706,7 +710,7 @@ 751 413 - page_doing_show_time_image + IMG_CNT ; diff --git a/xml/page_collect_point_2.xml b/xml/page_collect_point_2.xml index 6cc7af13..5c7a427c 100644 --- a/xml/page_collect_point_2.xml +++ b/xml/page_collect_point_2.xml @@ -21,6 +21,18 @@ Var Seeker.TaobinErrorNetwork = 0 + If show_eng = "true" Then + + + Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2_eng.png" + + + Else + + + Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png" + EndIf + If PayOfflineMode = 1 Then Var Seeker.TaobinErrorNetwork = 1 ;Var Seeker.PointTaobinStr = "" + PayAmount @@ -264,7 +276,7 @@ 751 413 - "ROOT/taobin_project/image/page_doing/img2.png" + IMG_CNT ; diff --git a/xml/page_collect_point_3.xml b/xml/page_collect_point_3.xml index 1561191c..510c4358 100644 --- a/xml/page_collect_point_3.xml +++ b/xml/page_collect_point_3.xml @@ -29,9 +29,13 @@ Var DirImage = "ROOT/taobin_project/image/display_point_en" Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png" + Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2_eng.png" + Else Var DirImage = "ROOT/taobin_project/image/display_point" Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png" + + Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png" EndIf Var CoffeePointTmp = CoffeePoint @@ -1182,7 +1186,7 @@ 751 413 - "ROOT/taobin_project/image/page_doing/img2.png" + IMG_CNT ; diff --git a/xml/page_payment.xml b/xml/page_payment.xml index 28d8658b..a2a3257d 100644 --- a/xml/page_payment.xml +++ b/xml/page_payment.xml @@ -52,6 +52,10 @@ DEBUGVAR CustomerFilterType EndIf + ;Var AdultFlag = 1 + + + Var QRCODE1 = "A000000677010112" Var QRCODE2 = "010755600066301" Var QRCODE3 = "VDGN" @@ -65,6 +69,7 @@ Var CountStepForCupFlagDelay = 1 Var VendingBank = "other" + Var ReqPayInfoFromCashOther = 0 @@ -112,14 +117,27 @@ If show_eng = "true" Then Var DirImage = "ROOT/taobin_project/image/page_payment_en/page_payment" Var PlaySoundLag = "ROOT/taobin_project/sound_eng/How_would_you_like_to_pay.mp3" + Var PlaySoundCodeLang = "ROOT/sounds_eng/Code8digit.m4a" + Else Var DirImage = "ROOT/taobin_project/image/page_payment" Var PlaySoundLag = "ROOT/taobin_project/sound_thai/payment.mp3" + Var PlaySoundCodeLang = "ROOT/sounds/Code8digit.m4a" EndIf SAVELOG MachineStage + + If AdultFlag = 1 Then + If CameraCount = 1 Then + CameraSetting "usbfront" "default" "Rotate=270,Resolution=1280x720,scaleX=1.0,scaleY=1.0" + EndIf + + Var PlaySoundLag = "" + + EndIf + READ_FILE "/mnt/sdcard/can_sell" ReadyForBrew diff --git a/xml/page_payment_camera.xml b/xml/page_payment_camera.xml new file mode 100644 index 00000000..b50ac8a7 --- /dev/null +++ b/xml/page_payment_camera.xml @@ -0,0 +1,263 @@ + + "Enable" + 1080 + 1920 + "0xeae6e1" + SoundVolume + + + Var CamFlag = 0 + Var CamCount = 0 + Var Timeout = 0 + Var ShutterResult = "-" + + + + + + + + + + + + 1000 + + + Var Timeout = Timeout + 1 + + If Timeout > 30 Then + Open "ROOT/taobin_project/xml/page_payment_cameraFailed.xml" + EndIf + + If ShutterResult = "ok" Then + Open "ROOT/taobin_project/xml/page_payment_cameraWait.xml" + EndIf + + Refresh + TimerReset + + + + + + + 144 + 413 + pay_with_chanel_text + + + +; back + + + + 375 + 623 + 331 + 435 + PictureDrink + + + + + 375 + 623 + eval( + If IsSmoRet = "true" Then + Var return = "Enable" + Else + Var return = "Invisible" + EndIf +) + + "ROOT/taobin_project/image/topping2/blender_icon.png" + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 1065 + 1080 + Center + 72 + KanitMediumTTF + 0xB78F24 + showRemaining + + + + + + 0 + 938 + 1080 + Center + 72 + KanitMediumTTF + 0x513C2F + showname + + + + 0 + 1022 + 1080 + Center + 24 + KanitLightTTF + 0x6F5F51 + showdesc + + + + + 0 + 380 + "Enable" + "ROOT/taobin_project/image/page_payment/alpha.png" + + + + + + 735 + 1374 +"usbfront" + 326 + 235 + + + + + + + + diff --git a/xml/page_payment_cameraFailed.xml b/xml/page_payment_cameraFailed.xml new file mode 100644 index 00000000..44bd9098 --- /dev/null +++ b/xml/page_payment_cameraFailed.xml @@ -0,0 +1,264 @@ + + "Enable" + 1080 + 1920 + "0xeae6e1" + SoundVolume + + + Var CamFlag = 0 + Var CamCount = 0 + Var Timeout = 0 + + + + + + + + + + + + + + + + + + + + 1000 + + + Var Timeout = Timeout + 1 + + If Timeout > 15 Then + Open "ROOT/taobin_project/xml/page_catalog.xml" + EndIf + + Refresh + TimerReset + + + + + + + 144 + 413 + pay_with_chanel_text + + + +; back + + + + 375 + 623 + 331 + 435 + PictureDrink + + + + + 375 + 623 + eval( + If IsSmoRet = "true" Then + Var return = "Enable" + Else + Var return = "Invisible" + EndIf +) + + "ROOT/taobin_project/image/topping2/blender_icon.png" + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 1065 + 1080 + Center + 72 + KanitMediumTTF + 0xB78F24 + showRemaining + + + + + + 0 + 938 + 1080 + Center + 72 + KanitMediumTTF + 0x513C2F + showname + + + + 0 + 1022 + 1080 + Center + 24 + KanitLightTTF + 0x6F5F51 + showdesc + + + + + 0 + 380 + "Enable" + "ROOT/taobin_project/image/page_payment/alpha.png" + + + + + 249 + 751 + "Enable" + Var( DirImage + "/img_popup4-3.png" ) + + + + + + + diff --git a/xml/page_payment_cameraWait.xml b/xml/page_payment_cameraWait.xml new file mode 100644 index 00000000..b2214139 --- /dev/null +++ b/xml/page_payment_cameraWait.xml @@ -0,0 +1,263 @@ + + "Enable" + 1080 + 1920 + "0xeae6e1" + SoundVolume + + + Var CamFlag = 0 + Var CamCount = 0 + Var Timeout = 0 + + Var LOADING_STATE = "Enable" + + + + + + + Var AdultFlag = 0 + CoinVending XBILL + Open "ROOT/taobin_project/xml/page_payment_cash.xml" + + + + + + Open "ROOT/taobin_project/xml/page_payment_cameraFailed.xml" + + + + + 1000 + + + Var Timeout = Timeout + 1 + + If Timeout = 1 Then + facecompare 30 + EndIf + + If Timeout > 31 Then + Open "ROOT/taobin_project/xml/page_payment_cameraFailed.xml" + EndIf + + Refresh + TimerReset + + + + + + + 144 + 413 + pay_with_chanel_text + + + +; back + + + + 375 + 623 + 331 + 435 + PictureDrink + + + + + 375 + 623 + eval( + If IsSmoRet = "true" Then + Var return = "Enable" + Else + Var return = "Invisible" + EndIf +) + + "ROOT/taobin_project/image/topping2/blender_icon.png" + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 1065 + 1080 + Center + 72 + KanitMediumTTF + 0xB78F24 + showRemaining + + + + + + 0 + 938 + 1080 + Center + 72 + KanitMediumTTF + 0x513C2F + showname + + + + 0 + 1022 + 1080 + Center + 24 + KanitLightTTF + 0x6F5F51 + showdesc + + + + + 0 + 380 + "Enable" + "ROOT/taobin_project/image/page_payment/alpha.png" + + + + + + 837 + 1403 + 94 + 94 + LOADING_STATE + Var( DirImage + "/loading.gif" ) + + + + diff --git a/xml/page_payment_cash.xml b/xml/page_payment_cash.xml index 7cab1b46..99f630c2 100644 --- a/xml/page_payment_cash.xml +++ b/xml/page_payment_cash.xml @@ -11,6 +11,10 @@ READ_FILE "/mnt/sdcard/coffeevending/cash_disable" cash_disable DEBUGVAR cash_disable + ;If AdultFlag = 1 Then + ; Open "ROOT/taobin_project/xml/page_payment_camera.xml" + ;EndIf + @@ -47,7 +51,6 @@ Var AdultFlag2 = 1 EndIf - Var ReqPayInfoFlag2 = 0 @@ -226,7 +229,7 @@ EndIf - Var X_CASH = 60 + Var X_CASH = 184 If RoadShow = "true" Then Var X_CASH = 287 @@ -523,6 +526,19 @@ __CMD "prepar-cup-from-order" 0 "-" "-" + If ReqPayInfoFromCashOther = 1 Then + Var LOADING_STATE = "Enable" + + Var FlagQROpened = 1 + Var alphaState = "Enable" + + VendingQR ON + + Var ReqPayInfoFromCashOther = 0 + EndIf + + ;Open "ROOT/taobin_project/xml/page_page_camera.xml" + @@ -562,6 +578,9 @@ If ReqPayInfoFlag2 = 3 Then Var Seeker.CampaignPayChanel = "true" EndIf + If ReqPayInfoFlag2 = 4 Then + Var Seeker.CampaignPayChanel = "dolfin" + EndIf @@ -641,6 +660,25 @@ EndIf EndIf + If ReqPayInfoFlag = 4 Then + If VendingQRTypeResult = "DOL:2" Then + Var CashTextWarning = "" + Var QRErrorState = "Invisible" + Var QRCODE99Shoppy = SessionID + Var QRCODE99Shoppy = QRCODE99Shoppy + Ext1a + SAVELOG Ext1a + SAVELOG QRCODE99Shoppy + Var QRCODE99Shoppy = QRCODE99Shoppy + Ext21 + Var ReqPayInfoFlag = 0 + Var ReqPayInfoFlag2 = 4 + SAVELOG QRCODE99Shoppy + SAVELOG Ext21 + + Var QRCODE99 = QRCODE99Shoppy + Var LOADING_STATE = "Invisible" + EndIf + EndIf + Else Var PayInfoCFlag = 1 EndIf @@ -671,6 +709,13 @@ Var LOADING_STATE = "Invisible" EndIf EndIf + If ReqPayInfoFlag = 4 Then + Var QRErrorFlag = 1 + If alphaState = "Enable" Then + Var QRErrorState = "Enable" + Var LOADING_STATE = "Invisible" + EndIf + EndIf Else Var PayInfoCFlag = 1 EndIf @@ -689,6 +734,16 @@ EndIf + If CamFlag = 1 Then + Var CamCount = CamCount + 1 + If CamCount > 2 Then + facecompare 10 + Var CamFlag = 0 + Var CamCount = 0 + EndIf + EndIf + + If AdultState2 = "Enable" Then Var countAdultS2 = countAdultS2 + 1 @@ -967,113 +1022,119 @@ DEBUGVAR IDCardData DEBUGVAR IDBirthdate - If AdultFlag2 = 1 Then + If CancelFlag = 0 Then - If IDCardStatus = "OK" Then - If IDCardReady = "OK" Then - If IDCardData = "START" Then + If AdultFlag2 = 1 Then - Var AdultState2 = "Enable" - Var AdultState1 = "Invisible" - - Refresh + If IDCardStatus = "OK" Then + If IDCardReady = "OK" Then + If IDCardData = "START" Then + + Var AdultState2 = "Enable" + Var AdultState1 = "Invisible" + Var AdultState3 = "Invisible" + + Refresh + EndIf EndIf EndIf - EndIf - If IDCardStatus = "OK" Then - If IDCardReady = "OK" Then - If IDCardData = "ERROR" Then - Var AdultState2 = "Invisible" - Var AdultState3 = "Enable" - - Refresh + If IDCardStatus = "OK" Then + If IDCardReady = "OK" Then + If IDCardData = "ERROR" Then + Var AdultState2 = "Invisible" + Var AdultState3 = "Enable" + + Refresh + EndIf EndIf EndIf - EndIf - If IDCardStatus = "ERROR" Then - Var AdultState2 = "Invisible" - Var AdultState3 = "Enable" - - Refresh - EndIf + If IDCardStatus = "ERROR" Then + Var AdultState2 = "Invisible" + Var AdultState3 = "Enable" + + Refresh + EndIf - If IDCardStatus = "OK" Then - If IDCardReady = "OK" Then - If IDCardData = "DONE" Then + If IDCardStatus = "OK" Then + If IDCardReady = "OK" Then + If IDCardData = "DONE" Then - ;Var birthDate = IDBirthdate - Var StrYear = "" - Var StrMon = "" - Var StrDay = "" + ;Var birthDate = IDBirthdate + Var StrYear = "" + Var StrMon = "" + Var StrDay = "" - SUBSTRING IDBirthdate 0 4 StrYear - SUBSTRING IDBirthdate 4 6 StrMon - SUBSTRING IDBirthdate 6 8 StrDay + SUBSTRING IDBirthdate 0 4 StrYear + SUBSTRING IDBirthdate 4 6 StrMon + SUBSTRING IDBirthdate 6 8 StrDay - INT StrYear - INT StrMon - INT StrDay + INT StrYear + INT StrMon + INT StrDay - Var Adult20 = 0 + Var Adult20 = 0 - DEBUGVAR StrYear - DEBUGVAR StrMon - DEBUGVAR StrDay + DEBUGVAR StrYear + DEBUGVAR StrMon + DEBUGVAR StrDay - DEBUGVAR sdatemonth - DEBUGVAR sdateday + DEBUGVAR sdatemonth + DEBUGVAR sdateday - Var sdateyear = sdateyear + 543 - Var AgeNumber = sdateyear - StrYear - DEBUGVAR AgeNumber + Var sdateyear = sdateyear + 543 + Var AgeNumber = sdateyear - StrYear + DEBUGVAR AgeNumber - If AgeNumber >= 20 Then + If AgeNumber >= 20 Then - If AgeNumber = 20 Then - If sdatemonth > StrMon Then - Var Adult20 = 1 - Else - If sdatemonth = StrMon Then - If sdateday >= StrDay Then - Var Adult20 = 1 + If AgeNumber = 20 Then + If sdatemonth > StrMon Then + Var Adult20 = 1 + Else + If sdatemonth = StrMon Then + If sdateday >= StrDay Then + Var Adult20 = 1 + EndIf EndIf EndIf + Else + Var Adult20 = 1 EndIf + + If Adult20 = 1 Then + Var AdultState3 = "Invisible" + Var AdultState2 = "Invisible" + Var AdultState1 = "Invisible" + Var AdultState = "Invisible" + ;CoinVending XBILL + Open "ROOT/taobin_project/xml/page_payment_camera.xml" + Refresh + + Else + Var AdultState2 = "Invisible" + Var AdultState3 = "Enable" + Refresh + EndIf + Else - Var Adult20 = 1 + Var AdultState2 = "Invisible" + Var AdultState3 = "Enable" + Refresh EndIf - If Adult20 = 1 Then - Var AdultState3 = "Invisible" - Var AdultState2 = "Invisible" - Var AdultState1 = "Invisible" - Var AdultState = "Invisible" - CoinVending XBILL - Refresh - - Else - Var AdultState2 = "Invisible" - Var AdultState3 = "Enable" - Refresh - EndIf - Else - Var AdultState2 = "Invisible" - Var AdultState3 = "Enable" - Refresh + Var AdultFlag2 = 1 + EndIf - - - Var AdultFlag2 = 1 - EndIf EndIf - EndIf + EndIf + EndIf @@ -1325,8 +1386,8 @@ + + + + + + + + + + + + + + + + + + + + + + + + + Open "/media/bt/xml/security_alarm.xml" + + + + diff --git a/xml/page_payment_code.xml b/xml/page_payment_code.xml index 1bf3db03..c614ed12 100644 --- a/xml/page_payment_code.xml +++ b/xml/page_payment_code.xml @@ -4,7 +4,7 @@ 1080 1920 "0xeae6e1" - "ROOT/sounds/Code8digit.m4a" + PlaySoundCodeLang SoundVolume "Partial" diff --git a/xml/page_payment_codeAIS.xml b/xml/page_payment_codeAIS.xml index 90da389e..fff5fcb8 100644 --- a/xml/page_payment_codeAIS.xml +++ b/xml/page_payment_codeAIS.xml @@ -4,7 +4,7 @@ 1080 1920 "0xeae6e1" - "ROOT/sounds/Code8digit.m4a" + PlaySoundCodeLang SoundVolume "Partial" diff --git a/xml/page_payment_codeDtac.xml b/xml/page_payment_codeDtac.xml index f3373f60..f92c61d3 100644 --- a/xml/page_payment_codeDtac.xml +++ b/xml/page_payment_codeDtac.xml @@ -4,7 +4,7 @@ 1080 1920 "0xeae6e1" - "ROOT/sounds/Code8digit.m4a" + PlaySoundCodeLang SoundVolume "Partial" diff --git a/xml/page_payment_codeGLX.xml b/xml/page_payment_codeGLX.xml index 540f4504..57f2670c 100644 --- a/xml/page_payment_codeGLX.xml +++ b/xml/page_payment_codeGLX.xml @@ -4,7 +4,7 @@ 1080 1920 "0xeae6e1" - "ROOT/sounds/Code8digit.m4a" + PlaySoundCodeLang SoundVolume "Partial" diff --git a/xml/page_payment_codeLH.xml b/xml/page_payment_codeLH.xml new file mode 100644 index 00000000..bc2def07 --- /dev/null +++ b/xml/page_payment_codeLH.xml @@ -0,0 +1,696 @@ + + + "Enable" + 1080 + 1920 + "0xeae6e1" + PlaySoundCodeLang + SoundVolume + "Partial" + + ; On open + Var ECommerce = "" + Var Seeker.FreeVendingCampaign = 0 + + Var Timeout = 0 + + Var GetPayInfoFlag = 0 + Var Seeker.CodeChannel = 0 + + ;Var VendingQRCode = "ERROR" + ;VendingQR ON + ;Var QRCODE99 = "" + + ;CoinVending OFF + + Var ShowTextNumber = "Enable" + Var ShowErrorText = "Invisible" + Var Tel_Confirm_State = "Invisible" + Var ErrorCause = "" + + + If show_eng = "true" Then + Var DirImage = "ROOT/taobin_project/image/collectiing_en" + Else + Var DirImage = "ROOT/taobin_project/image/collectiing" + EndIf + + + Var Mode# = 0 + Var Str# = "" + Var TelephoneNumber# = "" + + + 1000 + + ;Open "ROOT/xml/page_board.xml" + + + + Var Timeout = Timeout + 1 + If Timeout > 30 Then + + Open "ROOT/taobin_project/xml/page_payment_codeOther.xml" + + Refresh + EndIf + + TimerReset + + + + + If ViewBill > 0 Then + CoinVending BILLREJECT + EndIf + + + + + + + + If Seeker.CodeChannel = 1 Then + + SAVELOG "Seeker.CodeChannel 1 > ActOK." + + SAVELOG ECommerce + + SPLIT ECommerce "/" 5 Seeker.VendingCode + SPLIT ECommerce "/" 7 Seeker.VendingCampaignRI3 + SPLIT ECommerce "/" 8 VendingCampaign1 + + If Seeker.VendingCode = "" Then + Var Seeker.VendingCode = "C00" + EndIf + + If Seeker.VendingCode = "KBA:2" Then + Var Seeker.VendingCode = "C00" + EndIf + + If Seeker.VendingCode = "AIR:2" Then + Var Seeker.VendingCode = "C00" + EndIf + + If Seeker.VendingCode = "TWN:2" Then + Var Seeker.VendingCode = "C00" + EndIf + + SAVELOG Seeker.VendingCode + SAVELOG Seeker.VendingCampaignRI3 + + + If Seeker.VendingCode = "C00" Then + + Else + + Var VendingCreditRemain = "" + Var IntVendingCampaign1 = VendingCampaign1 + INT IntVendingCampaign1 + + If IntVendingCampaign1 > 0 Then + Var VendingCreditRemain = VendingCampaign1 + EndIf + + + + Var Seeker.IntVendingCampaign = Seeker.VendingCampaignRI3 + INT Seeker.IntVendingCampaign + + Var VendingREFID = SessionID + + If Seeker.IntVendingCampaign > 0 Then + Var QRChannel = 0 + + If Seeker.IntVendingCampaign >= PayAmount Then + ;Open "ROOT/taobin_project/xml/page_payment_cash.xml" + Var Seeker.VendingCampaign = PayAmount + Var Seeker.FreeVendingCampaign = 1 + CoinVending OFF + ;Var GIFShowProcess = "ROOT/ui/page_05_loading/pic_loading_cup.gif" + If CART_COUNT >= 1 Then + + Cart "PreparID" 1 + Var CART_INDEX = 1 + Var PayReference = "" + GenHashWithTimeStamp PayReference + Cart "MakeID" CART_INDEX + Open "ROOT/taobin_project/xml/page_thankyou.xml" + Else + Var CART_INDEX = 0 + + If Seeker = "curr" Then + MakeDrinkV1 SelectDrink SelectSugarID + Var TxRef1 = "" + CreateTxRef1 TxRef1 + Else + DEBUGVAR Seeker + Var TxRef1 = "" + CreateTxRef1 TxRef1 + EndIf + Open "ROOT/taobin_project/xml/page_thankyou.xml" + EndIf + EndIf + + Var Seeker.CodeChannel = 1 + + If CART_COUNT >= 1 Then + Open "ROOT/taobin_project/xml/page_payment_cashMore.xml" + Else + Open "ROOT/taobin_project/xml/page_payment_cash.xml" + EndIf + + + + Else + + Var ShowErrorText = "Enable" + Var text_show_error = DirImage + "/text_show_error.png" + Var GetPayInfoFlag = 0 + Var Seeker.CodeChannel = 0 + + EndIf + EndIf + + Else + + + + + EndIf + + + + + If Seeker.CodeChannel = 1 Then + Var TelephoneNumber = "" + + Var ShowErrorText = "Enable" + + SAVELOG ShowErrorText + + Var text_show_error = DirImage + "/text_show_error2.png" + + If ErrorCause = "failed_fromoper_0002" Then + Var text_show_error = DirImage + "/text_show_error.png" + EndIf + + If ErrorCause = "failed_fromoper_0005" Then + Var text_show_error = DirImage + "/text_show_error3.png" + EndIf + + If ErrorCause = "failed_fromoper_0006" Then + Var text_show_error = DirImage + "/text_show_error4.png" + EndIf + + Var GetPayInfoFlag = 0 + Var Seeker.CodeChannel = 0 + Var Tel_Confirm_State = "Disable" + Refresh + EndIf + + + + + + + + 0 + 380 + "ROOT/taobin_project/image/collectiing/alpha.png" + + + + + 158 + 667 + "ROOT/taobin_project/image/collectiing/img_popup1.png" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 217 + 868 + Var( DirImage + "/img3.png" ) + + + + 244 + 882 + ShowTextNumber + "Enable" + Var( DirImage + "/text_12.png" ) + + + + + 0 + 883 + 1080 + Center + 62 + RobotoBlack + 0x513C2F + "Enable" + TelephoneNumber# + + + + + + + 188 + 760 + Var( DirImage + "/text_38.png" ) + + + + 152 + 1001 + "Enable" + ShowErrorText + text_show_error + + + + 158 + 513 + Var( DirImage + "/img_popupLH.png" ) + + + +; +; 0 +; 0 +; "ROOT/taobin_project/image/ad_medium_2.png" +; + + + + + + + Open "/media/bt/xml/security_alarm.xml" + + + + + + + diff --git a/xml/page_payment_codeLotus.xml b/xml/page_payment_codeLotus.xml index dec85be2..2c0fc2bb 100644 --- a/xml/page_payment_codeLotus.xml +++ b/xml/page_payment_codeLotus.xml @@ -4,7 +4,7 @@ 1080 1920 "0xeae6e1" - "ROOT/sounds/Code8digit.m4a" + PlaySoundCodeLang SoundVolume "Partial" diff --git a/xml/page_payment_codeOther.xml b/xml/page_payment_codeOther.xml index 3d85e40b..74ee9efc 100644 --- a/xml/page_payment_codeOther.xml +++ b/xml/page_payment_codeOther.xml @@ -88,14 +88,14 @@ 158 - 712 + 567 Var( DirImage + "/img_popup16.png") + + + + + +