聊天==============添加聊天限制
parent
5ac2ed1220
commit
dff7664cab
|
@ -214,13 +214,14 @@ function this.OnTabChange(index, lastIndex)
|
|||
if this._CurChannel == CHAT_CHANNEL.FAMILY or this._CurChannel == CHAT_CHANNEL.GLOBAL or this._CurChannel == CHAT_CHANNEL.JUMP_SERVER then
|
||||
local mission=ActivityGiftManager.GetActivityInfo(ActivityTypeDef.shuaChongTeQuan,2202)
|
||||
local state=mission.state
|
||||
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.CHAT) then
|
||||
LogError("VipManager.GetChargedNum()=="..VipManager.GetChargedNum())
|
||||
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.CHAT) and VipManager.GetChargedNum()>=10000 then
|
||||
this.input:SetActive(true)
|
||||
this.noInputTip:SetActive(false)
|
||||
else
|
||||
this.input:SetActive(false)
|
||||
this.noInputTip:SetActive(true)
|
||||
this.noInputTip:GetComponent("Text").text = "等级达到20级才可发言"
|
||||
this.noInputTip:GetComponent("Text").text = "等级达到20级且折扣后真实充值达到100元才可发言"
|
||||
end
|
||||
elseif this._CurChannel == CHAT_CHANNEL.FRIEND or this._CurChannel == CHAT_CHANNEL.SYSTEM then
|
||||
this.input:SetActive(false)
|
||||
|
@ -523,6 +524,7 @@ function this.ChatItemAdapter(node, data, isShowTime)
|
|||
elseif chat.type == GLOBAL_CHAT_TYPE.GUILD_AID then
|
||||
Util.AddOnceClick(content.gameObject, function()
|
||||
JumpManager.GoJump(72001)
|
||||
|
||||
end)
|
||||
end
|
||||
elseif this._CurChannel == CHAT_CHANNEL.JUMP_SERVER then
|
||||
|
|
Loading…
Reference in New Issue