邮件容错
This commit is contained in:
parent
7dae3a6ab5
commit
35a4f25366
@ -368,7 +368,6 @@ function SDKManager:showFullScreenAds(adsClickType, adCallback)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function SDKManager:adRewradAd(noReport)
|
function SDKManager:adRewradAd(noReport)
|
||||||
Logger.logHighlight("-------------------")
|
|
||||||
ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.X_WATCH_AD)
|
ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.X_WATCH_AD)
|
||||||
if not noReport then
|
if not noReport then
|
||||||
-- BIReport:postAdEvent()
|
-- BIReport:postAdEvent()
|
||||||
|
|||||||
@ -41,16 +41,10 @@ function MailCell:refresh(entity)
|
|||||||
uiMap["mail_cell.bg_normal.claim_btn.tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_CLAIM))
|
uiMap["mail_cell.bg_normal.claim_btn.tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_CLAIM))
|
||||||
uiMap["mail_cell.bg_read.claim_btn.tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_READ))
|
uiMap["mail_cell.bg_read.claim_btn.tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_READ))
|
||||||
uiMap["mail_cell.bg_normal.claim_btn"]:addClickListener(function()
|
uiMap["mail_cell.bg_normal.claim_btn"]:addClickListener(function()
|
||||||
if entity:canClaim() then
|
self:claimMail(entity)
|
||||||
ModuleManager.MailManager:claimMail({entity:getId()})
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
uiMap["mail_cell.bg_ad.claim_btn"]:addClickListener(function()
|
uiMap["mail_cell.bg_ad.claim_btn"]:addClickListener(function()
|
||||||
if entity:canClaim() then
|
self:claimMail(entity)
|
||||||
SDKManager:showFullScreenAds(BIReport.ADS_CLICK_TYPE.MAIL, function()
|
|
||||||
ModuleManager.MailManager:claimMail({entity:getId()})
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
uiMap["mail_cell.bg_read.claim_btn"]:addClickListener(function()
|
uiMap["mail_cell.bg_read.claim_btn"]:addClickListener(function()
|
||||||
BIReport:postMailClick(entity:getId())
|
BIReport:postMailClick(entity:getId())
|
||||||
@ -105,4 +99,18 @@ function MailCell:refresh(entity)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function MailCell:claimMail(entity)
|
||||||
|
if not entity:canClaim() then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
if entity:getIsAdMail() then
|
||||||
|
SDKManager:showFullScreenAds(BIReport.ADS_CLICK_TYPE.MAIL, function()
|
||||||
|
ModuleManager.MailManager:claimMail({entity:getId()})
|
||||||
|
end)
|
||||||
|
elseif entity:getIsNormalMail() then
|
||||||
|
ModuleManager.MailManager:claimMail({entity:getId()})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
return MailCell
|
return MailCell
|
||||||
Loading…
x
Reference in New Issue
Block a user