文字显示报错修改
parent
ae826de307
commit
37de4c4450
|
@ -118,13 +118,15 @@ end
|
||||||
|
|
||||||
function QianKunBoxBuyOnePanel:GetSendStr()
|
function QianKunBoxBuyOnePanel:GetSendStr()
|
||||||
local str = ""
|
local str = ""
|
||||||
for k,v in ipairs(lotterySetting[this.recruitType].TenTimesMustGetItem) do
|
if lotterySetting[this.recruitType] and lotterySetting[this.recruitType].TenTimesMustGetItem and #lotterySetting[this.recruitType].TenTimesMustGetItem > 0 then
|
||||||
if str == "" then
|
for k,v in ipairs(lotterySetting[this.recruitType].TenTimesMustGetItem) do
|
||||||
str = str.."赠送"
|
if str == "" then
|
||||||
else
|
str = str.."赠送"
|
||||||
str = str.."和"
|
else
|
||||||
|
str = str.."和"
|
||||||
|
end
|
||||||
|
str = str..v[2].."个"..ItemConfig[v[1]].Name
|
||||||
end
|
end
|
||||||
str = str..v[2].."个"..ItemConfig[v[1]].Name
|
|
||||||
end
|
end
|
||||||
return str
|
return str
|
||||||
end
|
end
|
||||||
|
|
|
@ -124,13 +124,15 @@ end
|
||||||
|
|
||||||
function QianKunBoxBuyTenPanel:GetSendStr()
|
function QianKunBoxBuyTenPanel:GetSendStr()
|
||||||
local str = ""
|
local str = ""
|
||||||
for k,v in ipairs(lotterySetting[this.recruitType].TenTimesMustGetItem) do
|
if lotterySetting[this.recruitType] and lotterySetting[this.recruitType].TenTimesMustGetItem and #lotterySetting[this.recruitType].TenTimesMustGetItem > 0 then
|
||||||
if str == "" then
|
for k,v in ipairs(lotterySetting[this.recruitType].TenTimesMustGetItem) do
|
||||||
str = str.."赠送"
|
if str == "" then
|
||||||
else
|
str = str.."赠送"
|
||||||
str = str.."和"
|
else
|
||||||
|
str = str.."和"
|
||||||
|
end
|
||||||
|
str = str..v[2].."个"..ItemConfig[v[1]].Name
|
||||||
end
|
end
|
||||||
str = str..v[2].."个"..ItemConfig[v[1]].Name
|
|
||||||
end
|
end
|
||||||
return str
|
return str
|
||||||
end
|
end
|
||||||
|
|
|
@ -106,13 +106,15 @@ end
|
||||||
|
|
||||||
function SecretBoxBuyOnePanel:GetSendStr()
|
function SecretBoxBuyOnePanel:GetSendStr()
|
||||||
local str = ""
|
local str = ""
|
||||||
for k,v in ipairs(lotterySetting[this.recruitType].TenTimesMustGetItem) do
|
if lotterySetting[this.recruitType] and lotterySetting[this.recruitType].TenTimesMustGetItem and #lotterySetting[this.recruitType].TenTimesMustGetItem > 0 then
|
||||||
if str == "" then
|
for k,v in ipairs(lotterySetting[this.recruitType].TenTimesMustGetItem) do
|
||||||
str = str.."赠送"
|
if str == "" then
|
||||||
else
|
str = str.."赠送"
|
||||||
str = str.."和"
|
else
|
||||||
|
str = str.."和"
|
||||||
|
end
|
||||||
|
str = str..v[2].."个"..ItemConfig[v[1]].Name
|
||||||
end
|
end
|
||||||
str = str..v[2].."个"..ItemConfig[v[1]].Name
|
|
||||||
end
|
end
|
||||||
return str
|
return str
|
||||||
end
|
end
|
||||||
|
|
|
@ -116,13 +116,15 @@ end
|
||||||
|
|
||||||
function SecretBoxBuyTenPanel:GetSendStr()
|
function SecretBoxBuyTenPanel:GetSendStr()
|
||||||
local str = ""
|
local str = ""
|
||||||
for k,v in ipairs(lotterySetting[this.recruitType].TenTimesMustGetItem) do
|
if lotterySetting[this.recruitType] and lotterySetting[this.recruitType].TenTimesMustGetItem and #lotterySetting[this.recruitType].TenTimesMustGetItem > 0 then
|
||||||
if str == "" then
|
for k,v in ipairs(lotterySetting[this.recruitType].TenTimesMustGetItem) do
|
||||||
str = str.."赠送"
|
if str == "" then
|
||||||
else
|
str = str.."赠送"
|
||||||
str = str.."和"
|
else
|
||||||
|
str = str.."和"
|
||||||
|
end
|
||||||
|
str = str..v[2].."个"..ItemConfig[v[1]].Name
|
||||||
end
|
end
|
||||||
str = str..v[2].."个"..ItemConfig[v[1]].Name
|
|
||||||
end
|
end
|
||||||
return str
|
return str
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue