THAI: fix topup bug.

This commit is contained in:
Kenta420 2024-07-26 14:26:30 +07:00
parent 1d545f98a0
commit 949bfb5349
2 changed files with 15 additions and 7 deletions

View file

@ -39,6 +39,7 @@
GenHashWithTimeStamp PointCrm GenHashWithTimeStamp PointCrm
Var TopupWithCashState = "Enable" Var TopupWithCashState = "Enable"
Var NotEnoughPayment = 0
If SELLSTATUS = "SELLNOCASH" Then If SELLSTATUS = "SELLNOCASH" Then
Var TopupWithCashState = "Disable" Var TopupWithCashState = "Disable"
@ -133,6 +134,9 @@
<EventClick> <EventClick>
Var TopupFromPage = "payment" Var TopupFromPage = "payment"
If ShowNotEnoughText = "Enable" Then
Var NotEnoughPayment = 1
EndIf
Open "ROOT/taobin_project/xml/page_topup_credit3_cash_warning.xml" Open "ROOT/taobin_project/xml/page_topup_credit3_cash_warning.xml"
</EventClick> </EventClick>

View file

@ -110,13 +110,17 @@
Open "ROOT/taobin_project/xml/page_member_topupCash.xml" Open "ROOT/taobin_project/xml/page_member_topupCash.xml"
Else Else
If TopupFromPage = "payment" Then If TopupFromPage = "payment" Then
If ReqPayWithCash = 0 Then If NotEnoughPayment = 1 Then
Var TelephoneNumber = Seeker.TNumberTaobinCredit If ReqPayWithCash = 0 Then
Var useCreditAmount = SumCreditAmount Var TelephoneNumber = Seeker.TNumberTaobinCredit
Var BmiYear = useCreditAmount Var useCreditAmount = SumCreditAmount
Var GetScore = "useCredit" Var BmiYear = useCreditAmount
AddData 22 TelephoneNumber BmiYear PointCrm GetScore Var GetScore = "useCredit"
Var ReqPayWithCash = 1 AddData 22 TelephoneNumber BmiYear PointCrm GetScore
Var ReqPayWithCash = 1
EndIf
Else
Open "ROOT/taobin_project/xml/page_payment_credit3-TopupCash.xml"
EndIf EndIf
Else Else
Open "ROOT/taobin_project/xml/page_topup_credit3-TopupCash.xml" Open "ROOT/taobin_project/xml/page_topup_credit3-TopupCash.xml"