白名单和审核模式
This commit is contained in:
parent
b49e4f261f
commit
4c80f6ee3d
@ -24,6 +24,7 @@ BIReport.PAY_OPT_TYPE = {
|
|||||||
BUY = "Buy",
|
BUY = "Buy",
|
||||||
REWARD = "Reward",
|
REWARD = "Reward",
|
||||||
APPLE_REVIEW_REWARD = "AppleReviewReward",
|
APPLE_REVIEW_REWARD = "AppleReviewReward",
|
||||||
|
WHITELIST_REWARD = "WhitelistReward",
|
||||||
CANCEL = "Cancel",
|
CANCEL = "Cancel",
|
||||||
FAILED = "Failed",
|
FAILED = "Failed",
|
||||||
INIT_SUC = "InitSuc",
|
INIT_SUC = "InitSuc",
|
||||||
@ -343,7 +344,11 @@ function BIReport:postPurchase(price, content, originOrderId, orderId)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
-- 审核模式不上报
|
-- 审核模式不上报
|
||||||
if CS.BF.BFMain.IsShenhe then
|
if GFunc.isShenhe() then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
-- 白名单模式也不上报
|
||||||
|
if GFunc.isInWhitelist() then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
-- 上报AF,AF的所有事件值都是String类型
|
-- 上报AF,AF的所有事件值都是String类型
|
||||||
@ -738,6 +743,8 @@ function BIReport:postPayGet(giftType, id, rechargeId, orderId, originOrderId, b
|
|||||||
}
|
}
|
||||||
if GFunc.isShenhe() then
|
if GFunc.isShenhe() then
|
||||||
args.event_type = BIReport.PAY_OPT_TYPE.APPLE_REVIEW_REWARD
|
args.event_type = BIReport.PAY_OPT_TYPE.APPLE_REVIEW_REWARD
|
||||||
|
elseif GFunc.isInWhitelist() then
|
||||||
|
args.event_type = BIReport.PAY_OPT_TYPE.WHITELIST_REWARD
|
||||||
end
|
end
|
||||||
self:report(EVENT_NAME_PAY_OPT, args)
|
self:report(EVENT_NAME_PAY_OPT, args)
|
||||||
|
|
||||||
|
|||||||
@ -384,6 +384,9 @@ function First:requestAddress(callback, times, totalTimes)
|
|||||||
if serverResult then
|
if serverResult then
|
||||||
responded = true
|
responded = true
|
||||||
CS.BF.BFMain.IsShenhe = (serverResult.env == "audit" and CS.UnityEngine.Application.platform == CS.UnityEngine.RuntimePlatform.IPhonePlayer)
|
CS.BF.BFMain.IsShenhe = (serverResult.env == "audit" and CS.UnityEngine.Application.platform == CS.UnityEngine.RuntimePlatform.IPhonePlayer)
|
||||||
|
if serverResult.env == "white" then
|
||||||
|
CS.BF.BFMain.IsWhite = true
|
||||||
|
end
|
||||||
-- 如果已经成功过了 不作处理
|
-- 如果已经成功过了 不作处理
|
||||||
if self.hasReceiveAddrSuccess then
|
if self.hasReceiveAddrSuccess then
|
||||||
return
|
return
|
||||||
|
|||||||
@ -1208,6 +1208,10 @@ function GFunc.isShenhe()
|
|||||||
return CS.BF.BFMain.IsShenhe
|
return CS.BF.BFMain.IsShenhe
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function GFunc.isInWhitelist()
|
||||||
|
return CS.BF.BFMain.IsWhite
|
||||||
|
end
|
||||||
|
|
||||||
function GFunc.getArray()
|
function GFunc.getArray()
|
||||||
local array = {}
|
local array = {}
|
||||||
setmetatable(array, {__jsontype = "array"})
|
setmetatable(array, {__jsontype = "array"})
|
||||||
|
|||||||
@ -158,7 +158,7 @@ function GameSettingUI:_addListeners()
|
|||||||
AudioManager:setMusicVolume(0)
|
AudioManager:setMusicVolume(0)
|
||||||
end
|
end
|
||||||
|
|
||||||
if CS.BF.BFMain.IsWhite then
|
if GFunc.isInWhitelist() then
|
||||||
self.clickMusicCount = self.clickMusicCount + 1
|
self.clickMusicCount = self.clickMusicCount + 1
|
||||||
if self.clickMusicCount > CHECK_WHITE_LIST_COUNT then
|
if self.clickMusicCount > CHECK_WHITE_LIST_COUNT then
|
||||||
GFunc.showToast("Please don't frequently operate")
|
GFunc.showToast("Please don't frequently operate")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user