gm特惠弹窗修改

tcx_xiyou_bt_ios
PC-202302260912\Administrator 2024-05-14 10:55:42 +08:00
parent 43e635341b
commit 22af1dbc5a
2 changed files with 15 additions and 14 deletions

View File

@ -1182,20 +1182,21 @@ end
function this:TabBtnAction(id,actType,data)
if actType == 1 then
if id == ActivityTypeDef.FirstRecharge then
if PlayerPrefs.GetInt(PlayerManager.uid.."isGMEsp")==0 then
local isOpen=CheckFunctionOpen(153)
if isOpen then
UIManager.OpenPanel(UIName.GMEspecially,function()
UIManager.OpenPanel(UIName.FirstRechargePanel)
PlayerPrefs.SetInt(PlayerManager.uid.."isGMEsp",1)
end)
else
UIManager.OpenPanel(UIName.FirstRechargePanel)
end
-- if PlayerPrefs.GetInt(PlayerManager.uid.."isGMEsp")==0 then
-- local isOpen=CheckFunctionOpen(153)
-- if isOpen then
-- UIManager.OpenPanel(UIName.GMEspecially,function()
-- UIManager.OpenPanel(UIName.FirstRechargePanel)
-- PlayerPrefs.SetInt(PlayerManager.uid.."isGMEsp",1)
-- end)
-- else
-- UIManager.OpenPanel(UIName.FirstRechargePanel)
-- end
else
UIManager.OpenPanel(UIName.FirstRechargePanel)
end
-- else
-- UIManager.OpenPanel(UIName.FirstRechargePanel)
-- end
UIManager.OpenPanel(UIName.FirstRechargePanel)
elseif id == ActivityTypeDef.SevenDayCarnival then
UIManager.OpenPanel(UIName.SevenDayCarnivalPanelV2,SevenDayCarnivalManager.GetPriorityDayNumber())
elseif id == ActivityTypeDef.WarPowerSort then

View File

@ -185,7 +185,7 @@ function CreateNamePopup:BindEvent()
if this.options then
self:ClosePanel()
StoryManager.StoryJumpType(this.options[1], nil, this.callBackFunc)
--UIManager.OpenPanel(UIName.GMEspecially)
UIManager.OpenPanel(UIName.GMEspecially)
-- 发送创建角色事件
CustomEventManager.SendCustomEvents(FBSDKCustomEventType.CreateCharacter)
CustomEventManager.SendCustomEvents(FBSDKCustomEventType.RoleLv,1)