From 5d5ba37a4b7e7ae2424271ece60aa1817534b7e5 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Mon, 5 Jun 2023 18:02:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=88=90=E5=8A=9F=E6=97=B6?= =?UTF-8?q?=E6=B2=A1=E7=BB=91=E5=AE=9A=E8=B4=A6=E5=8F=B7=EF=BC=8C=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E7=BB=91=E5=AE=9A=E8=B4=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/common/pay_manager.lua | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/lua/app/common/pay_manager.lua b/lua/app/common/pay_manager.lua index d4625774..572a6baf 100644 --- a/lua/app/common/pay_manager.lua +++ b/lua/app/common/pay_manager.lua @@ -136,12 +136,17 @@ end function PayManager:requestRewards(purchaseToken, orderId, originOrderId, notShowRewardsBox) self:sendMsgToServer(purchaseToken, orderId, function(binder, msgData) if msgData.status == 0 then - if msgData.rewards and table.nums(msgData.rewards) > 0 then - local showRewards = not notShowRewardsBox - if DataManager.TutorialData and DataManager.TutorialData:getIsInTutorial() then -- 引导时不弹 - showRewards = false - end - if showRewards then + local showRewards = not notShowRewardsBox + if DataManager.TutorialData and DataManager.TutorialData:getIsInTutorial() then -- 引导时不弹 + showRewards = false + end + + if showRewards then + -- if not ModuleManager.AccountManager:getIsBinded() then -- 没绑定账户信息,提示去绑定 + -- -- body + -- end + + if msgData.rewards and table.nums(msgData.rewards) > 0 then GFunc.showRewardBox(msgData.rewards) end end