文字显示报错修改

dev_chengFeng
jiaoyangna 2021-11-27 17:13:28 +08:00
parent ae826de307
commit 37de4c4450
4 changed files with 32 additions and 24 deletions

View File

@ -118,6 +118,7 @@ end
function QianKunBoxBuyOnePanel:GetSendStr()
local str = ""
if lotterySetting[this.recruitType] and lotterySetting[this.recruitType].TenTimesMustGetItem and #lotterySetting[this.recruitType].TenTimesMustGetItem > 0 then
for k,v in ipairs(lotterySetting[this.recruitType].TenTimesMustGetItem) do
if str == "" then
str = str.."赠送"
@ -126,6 +127,7 @@ function QianKunBoxBuyOnePanel:GetSendStr()
end
str = str..v[2]..""..ItemConfig[v[1]].Name
end
end
return str
end

View File

@ -124,6 +124,7 @@ end
function QianKunBoxBuyTenPanel:GetSendStr()
local str = ""
if lotterySetting[this.recruitType] and lotterySetting[this.recruitType].TenTimesMustGetItem and #lotterySetting[this.recruitType].TenTimesMustGetItem > 0 then
for k,v in ipairs(lotterySetting[this.recruitType].TenTimesMustGetItem) do
if str == "" then
str = str.."赠送"
@ -132,6 +133,7 @@ function QianKunBoxBuyTenPanel:GetSendStr()
end
str = str..v[2]..""..ItemConfig[v[1]].Name
end
end
return str
end
--界面打开时调用(用于子类重写)

View File

@ -106,6 +106,7 @@ end
function SecretBoxBuyOnePanel:GetSendStr()
local str = ""
if lotterySetting[this.recruitType] and lotterySetting[this.recruitType].TenTimesMustGetItem and #lotterySetting[this.recruitType].TenTimesMustGetItem > 0 then
for k,v in ipairs(lotterySetting[this.recruitType].TenTimesMustGetItem) do
if str == "" then
str = str.."赠送"
@ -114,6 +115,7 @@ function SecretBoxBuyOnePanel:GetSendStr()
end
str = str..v[2]..""..ItemConfig[v[1]].Name
end
end
return str
end
--界面打开时调用(用于子类重写)

View File

@ -116,6 +116,7 @@ end
function SecretBoxBuyTenPanel:GetSendStr()
local str = ""
if lotterySetting[this.recruitType] and lotterySetting[this.recruitType].TenTimesMustGetItem and #lotterySetting[this.recruitType].TenTimesMustGetItem > 0 then
for k,v in ipairs(lotterySetting[this.recruitType].TenTimesMustGetItem) do
if str == "" then
str = str.."赠送"
@ -124,6 +125,7 @@ function SecretBoxBuyTenPanel:GetSendStr()
end
str = str..v[2]..""..ItemConfig[v[1]].Name
end
end
return str
end
--界面打开时调用(用于子类重写)