【特权礼包】加等级显示前端

【公会副本】 加前端五点刷新不能扫荡
dev_chengFeng
zhangqiang 2020-11-19 19:30:46 +08:00
parent 1303495f3d
commit 899903104f
3 changed files with 15 additions and 1 deletions

View File

@ -159,6 +159,9 @@ function this.GetBlood()
end
return blood
end
function this.SetCanSweep1()
canSweep = 0
end
function this.GetCanSweep()
return canSweep
end

View File

@ -195,6 +195,7 @@ function this.RefreshUpdateIndication(buffer)
PlayerPrefs.SetInt(PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.QianKunBoxTen,0)
PlayerPrefs.SetInt(PlayerManager.uid.."Trial",0)--森罗五点刷新重置红点
GuildTranscriptManager.SetCanSweep1()
end
--服务器推送红点信息

View File

@ -136,7 +136,17 @@ function this.GetGiftGoodsInfo(goodsType, Id)
end
function this.GetGiftGoodsInfoList(type)
return giftGoodsInfoList[type] and giftGoodsInfoList[type] or {}
-- return giftGoodsInfoList[type] and giftGoodsInfoList[type] or {}
if not giftGoodsInfoList[type] then
return {}
end
local newGiftGoodsInfoList = {}
for k,v in pairs(giftGoodsInfoList[type]) do
if rechargeConfig[v.goodsId] and PlayerManager.level >= rechargeConfig[v.goodsId].LevelLinit[1] and PlayerManager.level <= rechargeConfig[v.goodsId].LevelLinit[2] then
table.insert(newGiftGoodsInfoList,v)
end
end
return newGiftGoodsInfoList
end
function this.RefreshGiftGoodsBuyTimes(goodsType, goodsId, buyTimes)