没有图片问题修改

(cherry picked from commit 76d8399ac9ecd0c999ed6e8b53c7b7e231b73a16)
dev_chengFeng
jiaoyangna 2021-09-09 10:54:09 +08:00
parent 77ea33d675
commit 4727998055
1 changed files with 2 additions and 2 deletions

View File

@ -65,12 +65,12 @@ function this.GetATaiChuMiJuanData(data)
local www = WWW.New(str)
coroutine.www(www)
local m_sprite
if www.error then
local tex2d = www.texture
if www.error or not www.texture then
Log("data.windowLink:"..str)
LogError(string.format("data.windowLink:%s下载失败error:%s",data.windowLink,www.error))
m_sprite = Util.LoadSprite("taichuMiJuanDefaultBanner")
else
local tex2d = www.texture
m_sprite = Sprite.Create(tex2d, Rect.New(0, 0, tex2d.width, tex2d.height), Vector2.New(0, 0));
end
if not this.TaiChuMiJuanData[data.id] then