红点修改提交

dev_chengFeng
DESKTOP-98AVA47\Administrator 2021-07-23 11:45:13 +08:00
parent 022681face
commit 7703a9e740
1 changed files with 10 additions and 2 deletions

View File

@ -890,13 +890,21 @@ function this.InitDynamicActData()
end end
return this.allData return this.allData
end end
function this.CheckDynamicActTaskRed() function this.CheckDynamicActTaskRed(red)
this.InitDynamicActData() this.InitDynamicActData()
if not this.allData then if not this.allData then
return false return false
end end
local type
if red == RedPointType.DynamicActTask_MeiRi then
type = 1
elseif red == RedPointType.DynamicActTask_MeiZhou then
type = 2
else
type = 0
end
for i=1,#this.allData do for i=1,#this.allData do
if this.allData[i].state == 1 then if this.allData[i].state == 1 and (type == 0 or (this.allData[i].type == type)) then
return true return true
end end
end end