支付成功时没绑定账号,提示绑定账号
This commit is contained in:
parent
ec58c080ad
commit
5d5ba37a4b
@ -136,12 +136,17 @@ end
|
|||||||
function PayManager:requestRewards(purchaseToken, orderId, originOrderId, notShowRewardsBox)
|
function PayManager:requestRewards(purchaseToken, orderId, originOrderId, notShowRewardsBox)
|
||||||
self:sendMsgToServer(purchaseToken, orderId, function(binder, msgData)
|
self:sendMsgToServer(purchaseToken, orderId, function(binder, msgData)
|
||||||
if msgData.status == 0 then
|
if msgData.status == 0 then
|
||||||
if msgData.rewards and table.nums(msgData.rewards) > 0 then
|
|
||||||
local showRewards = not notShowRewardsBox
|
local showRewards = not notShowRewardsBox
|
||||||
if DataManager.TutorialData and DataManager.TutorialData:getIsInTutorial() then -- 引导时不弹
|
if DataManager.TutorialData and DataManager.TutorialData:getIsInTutorial() then -- 引导时不弹
|
||||||
showRewards = false
|
showRewards = false
|
||||||
end
|
end
|
||||||
|
|
||||||
if showRewards then
|
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)
|
GFunc.showRewardBox(msgData.rewards)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user