成长基金的显隐加入礼包是否存在的判断

dev_chengFeng
gaoxin 2020-08-28 15:29:57 +08:00
parent bf09d96840
commit ad2ec00881
3 changed files with 9 additions and 4 deletions

View File

@ -44,7 +44,7 @@ function this.LoginRequest(openId, func)
data.distinct_id = AppConst.isSDK and ThinkingAnalyticsManager.GetDistinctId() or ""
data.openId = openId
data.channel_s = AppConst.isSDKLogin and AppConst.SdkChannel .. "#" .. AppConst.SdkPackageName or "" --pt_pid.."#"..pt_gid
data.platform_s = AppConst.isSDK and "ADR" or "PC"
data.platform_s = AppConst.Platform --and "ADR" or "PC"
local msg = data:SerializeToString()
Network:SendMessageWithCallBack(MessageTypeProto_pb.LOGIN_REQUEST, MessageTypeProto_pb.LOGIN_RESPONSE, msg, function(buffer)

View File

@ -201,6 +201,8 @@ end
function this.GetGrowthRedPointState()
local redPoint = false
local hasGift = OperatingManager.HasGoodsByShowType(4)
if not hasGift then return false end
local giftGoodsInfo = OperatingManager.IsGrowthGiftGoodsAvailable(GoodsTypeDef.GrowthReward)
if giftGoodsInfo then return false end
local openId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.GrowthReward)

View File

@ -215,12 +215,15 @@ function OperatingPanel:RefreshTabStatus()
--判断成长基金活动是否开启或结束16是最后一档活动ActivityId
local t2 = false
local GrowthRewardId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.GrowthReward)
local singleRewardData
if GrowthRewardId then--是否开启
t2 = true
end
if GrowthRewardId == 16 then--是否结束
singleRewardData = ActivityGiftManager.GetActivityInfo(GrowthRewardId, 5324)
local hasGift = OperatingManager.HasGoodsByShowType(4)
if t2 and not hasGift then
t2 = false
end
if t2 and GrowthRewardId == 16 then--是否结束
local singleRewardData = ActivityGiftManager.GetActivityInfo(GrowthRewardId, 5324)
if not singleRewardData then
t2 = false
else