删除一些log、修复升级豪礼红点bug

dev_chengFeng
ZhangBiao 2020-08-31 16:32:27 +08:00
parent a9098b6bc7
commit 40266d1120
6 changed files with 12 additions and 19 deletions

View File

@ -639,7 +639,7 @@ function this.ExperyUpLvActivityIsShowRedPoint()
if activeData and activeData.mission then if activeData and activeData.mission then
for i = 1, #activeData.mission do for i = 1, #activeData.mission do
local curConfigData = ConfigManager.GetConfigData(ConfigName.ActivityRewardConfig,activeData.mission[i].missionId) local curConfigData = ConfigManager.GetConfigData(ConfigName.ActivityRewardConfig,activeData.mission[i].missionId)
if curConfigData and activeData.mission[i].state == 0 and activeData.value >= curConfigData.Values[2][1] then if curConfigData and activeData.mission[i].state == 0 and activeData.value >= curConfigData.Values[2][1] and activeData.mission[i].progress>0 then
return true return true
end end
end end

View File

@ -219,14 +219,7 @@ function Expert:ActivityRewardSingleShow(index,rewardData)
qianwangButton:SetActive(state == 10) qianwangButton:SetActive(state == 10)
getFinishText:SetActive(state == 20) getFinishText:SetActive(state == 20)
getRewardProgress:SetActive(state == 10) getRewardProgress:SetActive(state == 10)
--活动特殊处理
if numExChange[activeIndext] == ActivityTypeDef.UpLvAct then
Util.GetGameObject(lingquButton.gameObject, "redPoint"):SetActive((state == 0) and rewardData.progress>0)
else
Util.GetGameObject(lingquButton.gameObject, "redPoint"):SetActive(state == 0) Util.GetGameObject(lingquButton.gameObject, "redPoint"):SetActive(state == 0)
end
if numExChange[activeIndext] == ActivityTypeDef.UpStarExper or numExChange[activeIndext] == ActivityTypeDef.Talisman if numExChange[activeIndext] == ActivityTypeDef.UpStarExper or numExChange[activeIndext] == ActivityTypeDef.Talisman
or numExChange[activeIndext] == ActivityTypeDef.SoulPrint or numExChange[activeIndext] == ActivityTypeDef.EquipExper or numExChange[activeIndext] == ActivityTypeDef.SoulPrint or numExChange[activeIndext] == ActivityTypeDef.EquipExper
or numExChange[activeIndext] == ActivityTypeDef.FindTreasureExper then --进阶因为每个都不一样 特殊判断 or numExChange[activeIndext] == ActivityTypeDef.FindTreasureExper then --进阶因为每个都不一样 特殊判断

View File

@ -193,16 +193,16 @@ end
--界面打开或者重新打开后,界面刷新时调用(用于子类重写) --界面打开或者重新打开后,界面刷新时调用(用于子类重写)
function ExpertPanel:OnShow() function ExpertPanel:OnShow()
LogGreen("defaultIndex 1 "..defaultIndex) -- LogGreen("defaultIndex 1 "..defaultIndex)
if defaultIndex > 0 then if defaultIndex > 0 then
self:SetOpenActiveBtn() self:SetOpenActiveBtn()
else else
defaultIndex = self:SetOpenActiveBtn() defaultIndex = self:SetOpenActiveBtn()
LogGreen("defaultIndex 2 "..defaultIndex) -- LogGreen("defaultIndex 2 "..defaultIndex)
defaultIndex = self:GetPriorityIndex(defaultIndex) defaultIndex = self:GetPriorityIndex(defaultIndex)
LogGreen("defaultIndex 3 "..defaultIndex) -- LogGreen("defaultIndex 3 "..defaultIndex)
end end
self:RefreshActivityShow() self:RefreshActivityShow()
if defaultIndex > 0 then if defaultIndex > 0 then
@ -571,7 +571,7 @@ function ExpertPanel:SetOpenActiveBtn()
--end --end
--所有达人 --所有达人
for i, v in pairs(numExChange) do for i, v in pairs(numExChange) do
LogGreen("v "..v) -- LogGreen("v "..v)
local curActiveData = ActivityGiftManager.GetActivityTypeInfo(v) local curActiveData = ActivityGiftManager.GetActivityTypeInfo(v)
if curActiveData then if curActiveData then
if defaultIndex == 0 or defaultIndex > i then if defaultIndex == 0 or defaultIndex > i then

View File

@ -164,9 +164,9 @@ end
function this.SetHeroFormationList(heroDid,teamId,isAddOrDel) function this.SetHeroFormationList(heroDid,teamId,isAddOrDel)
if heroDatas[heroDid] then if heroDatas[heroDid] then
LogRed("this.heroResolveLicence[teamId]:"..tostring(this.heroResolveLicence[teamId])) -- LogRed("this.heroResolveLicence[teamId]:"..tostring(this.heroResolveLicence[teamId]))
if isAddOrDel and this.heroResolveLicence[teamId] then if isAddOrDel and this.heroResolveLicence[teamId] then
LogRed("添加了") -- LogRed("添加了")
heroDatas[heroDid].formationList[teamId] = teamId heroDatas[heroDid].formationList[teamId] = teamId
else else
heroDatas[heroDid].formationList[teamId] = nil heroDatas[heroDid].formationList[teamId] = nil

View File

@ -205,7 +205,7 @@ function this.PlayerInfoRequest(func)
Log(Language[11425]..type) Log(Language[11425]..type)
end end
LuckyTurnTableManager.SetTimes(msg.hadLuckTime,msg.hadAdvanceLuckyTime) LuckyTurnTableManager.SetTimes(msg.hadLuckTime,msg.hadAdvanceLuckyTime)
LogGreen("GetPlayerInfoResponse.treasureLevel:"..msg.treasureLevel) -- LogGreen("GetPlayerInfoResponse.treasureLevel:"..msg.treasureLevel)
QinglongSerectTreasureManager.SetLevel(msg.treasureLevel) QinglongSerectTreasureManager.SetLevel(msg.treasureLevel)
if func then if func then
func(msg) func(msg)

View File

@ -62,13 +62,13 @@ function this.ResetLocalData()
func() func()
PlayerPrefs.SetInt(text,Today_N_OClockTimeStamp(5)) PlayerPrefs.SetInt(text,Today_N_OClockTimeStamp(5))
end end
LogPink("PlayerPrefs.GetInt(text)"..PlayerPrefs.GetInt(text).." curTime"..curTime) -- LogPink("PlayerPrefs.GetInt(text)"..PlayerPrefs.GetInt(text).." curTime"..curTime)
if PlayerPrefs.GetInt(text) < curTime then if PlayerPrefs.GetInt(text) < curTime then
func() func()
PlayerPrefs.SetInt(text,Today_N_OClockTimeStamp(5)+86400) PlayerPrefs.SetInt(text,Today_N_OClockTimeStamp(5)+86400)
end end
LogGreen("PlayerPrefs.GetInt(text)"..PlayerPrefs.GetInt(text).." curTime"..curTime) -- LogGreen("PlayerPrefs.GetInt(text)"..PlayerPrefs.GetInt(text).." curTime"..curTime)
LogPurple(PlayerPrefs.GetInt(PlayerManager.uid.."Trial")) -- LogPurple(PlayerPrefs.GetInt(PlayerManager.uid.."Trial"))
end end
function this.OnGoldChange() function this.OnGoldChange()