神将来源修改

dev_chengFeng
jiaoyangna 2021-06-30 11:50:11 +08:00
parent 58994f5a38
commit ed1cf199a2
1 changed files with 3 additions and 3 deletions

View File

@ -323,10 +323,10 @@ function RewardItemSingleShowPopup:OnShow()
SetTextVerTial(this.posText.gameObject,Vector3.New(64,21,0),"MiddleLeft") SetTextVerTial(this.posText.gameObject,Vector3.New(64,21,0),"MiddleLeft")
local jumpDataList = heroConfig.Jump local jumpDataList = heroConfig.Jump
for i = 1, #jumpDataList do for i = 1, #jumpDataList do
if not RECHARGEABLE and (jumpDataList[i] == JumpType.firstRecharge or jumpDataList[i] == JumpType.ZhiZunJiangShi) then--(是否开启充值) if not RECHARGEABLE and (JumpConfig[jumpDataList[i]].Type == JumpType.firstRecharge or JumpConfig[jumpDataList[i]].Type == JumpType.ZhiZunJiangShi) then--(是否开启充值)
else else
local isShow = true local isShow = true
if jumpDataList[i] == JumpType.firstRecharge then if JumpConfig[jumpDataList[i]].Type == JumpType.firstRecharge then
local id = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.FirstRecharge) local id = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.FirstRecharge)
if id and id > 0 then if id and id > 0 then
local configs = ConfigManager.GetAllConfigsDataByKey(ConfigName.ActivityRewardConfig,"ActivityId",id) local configs = ConfigManager.GetAllConfigsDataByKey(ConfigName.ActivityRewardConfig,"ActivityId",id)
@ -344,7 +344,7 @@ function RewardItemSingleShowPopup:OnShow()
else else
isShow = false isShow = false
end end
elseif jumpDataList[i] == JumpType.ZhiZunJiangShi then elseif JumpConfig[jumpDataList[i]].Type == JumpType.ZhiZunJiangShi then
local id = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.SupremeHero) local id = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.SupremeHero)
if id and id > 0 then if id and id > 0 then
if ActivityGiftManager.GetRewardState(42)~=3 then if ActivityGiftManager.GetRewardState(42)~=3 then