聊天开启条件修改,提示修改

dev_fengTi_And
wangzhenxing 2023-07-31 17:43:39 +08:00
parent a025c1b250
commit c9bb9fabcc
1 changed files with 5 additions and 4 deletions

View File

@ -216,21 +216,22 @@ function this.OnTabChange(index, lastIndex)
local mission=ActivityGiftManager.GetActivityInfo(ActivityTypeDef.shuaChongTeQuan,2202)
local state=mission.state
LogError("VipManager.GetChargedNum()=="..VipManager.GetChargedNum())
--ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.CHAT)
--xiao7 渠道
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.CHAT) and VipManager.GetChargedNum()>=600 and chanel and chanel=="XQDC" then
if VipManager.GetChargedNum()>=600 and chanel and chanel=="XQDC" then
this.input:SetActive(true)
this.noInputTip:SetActive(false)
--其他渠道及本地
elseif ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.CHAT) and VipManager.GetChargedNum()>=10000 then
elseif VipManager.GetChargedNum()>=10000 then
this.input:SetActive(true)
this.noInputTip:SetActive(false)
else
this.input:SetActive(false)
this.noInputTip:SetActive(true)
if chanel and chanel=="XQDC" then
this.noInputTip:GetComponent("Text").text = "等级达到20级且折扣后真实充值达到6元才可发言"
this.noInputTip:GetComponent("Text").text = "折扣后实际充值100元可发言"
else
this.noInputTip:GetComponent("Text").text = "等级达到20级且折扣后真实充值达到100元才可发言"
this.noInputTip:GetComponent("Text").text = "充值6元可发言"
end
end