字段判断修改

master
1076390229 2025-08-05 21:33:15 +08:00
parent 3e1932b63a
commit 1ea145fa6c
2 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ function M:PlayerRenderer(index, obj)
local btn_invite = obj:GetChild('btn_invite') local btn_invite = obj:GetChild('btn_invite')
btn_invite:GetController('online').selectedIndex = 0 btn_invite:GetController('online').selectedIndex = 0
if self._data_number[i].uid ~= DataManager.SelfUser.account_id and self._data_number[i].online == 1 and self._data_number[i].playing == "stopPlaying" then if self._data_number[i].uid ~= DataManager.SelfUser.account_id and self._data_number[i].online == 1 and self._data_number[i].playing ~= "startPlaying" then
btn_invite:GetController('online').selectedIndex = 1 btn_invite:GetController('online').selectedIndex = 1
end end
@ -150,7 +150,7 @@ function M:PlayerRenderer(index, obj)
local state = 0 local state = 0
if self._data_number[i].online == 1 and self._data_number[i].playing == "startPlaying" then if self._data_number[i].online == 1 and self._data_number[i].playing == "startPlaying" then
state = 2 state = 2
elseif self._data_number[i].online == 1 and self._data_number[i].playing == "stopPlaying" then elseif self._data_number[i].online == 1 and self._data_number[i].playing ~= "startPlaying" then
state = 1 state = 1
elseif self._data_number[i].online == 0 then elseif self._data_number[i].online == 0 then
state = 0 state = 0

View File

@ -485,7 +485,7 @@ function M:ChangeNumber(fgCtr, group_id, limit, num, minus_only, sort_type)
local state = 0 local state = 0
if player.online == 1 and player.playing == "startPlaying" then if player.online == 1 and player.playing == "startPlaying" then
state = 2 state = 2
elseif player.online == 1 and player.playing == "stopPlaying" then elseif player.online == 1 and player.playing ~= "startPlaying" then
state = 1 state = 1
elseif player.online == 0 then elseif player.online == 0 then
state = 0 state = 0