字段判断修改
parent
3e1932b63a
commit
1ea145fa6c
|
|
@ -142,7 +142,7 @@ function M:PlayerRenderer(index, obj)
|
|||
local btn_invite = obj:GetChild('btn_invite')
|
||||
|
||||
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
|
||||
end
|
||||
|
||||
|
|
@ -150,7 +150,7 @@ function M:PlayerRenderer(index, obj)
|
|||
local state = 0
|
||||
if self._data_number[i].online == 1 and self._data_number[i].playing == "startPlaying" then
|
||||
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
|
||||
elseif self._data_number[i].online == 0 then
|
||||
state = 0
|
||||
|
|
|
|||
|
|
@ -485,7 +485,7 @@ function M:ChangeNumber(fgCtr, group_id, limit, num, minus_only, sort_type)
|
|||
local state = 0
|
||||
if player.online == 1 and player.playing == "startPlaying" then
|
||||
state = 2
|
||||
elseif player.online == 1 and player.playing == "stopPlaying" then
|
||||
elseif player.online == 1 and player.playing ~= "startPlaying" then
|
||||
state = 1
|
||||
elseif player.online == 0 then
|
||||
state = 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue