From beae17d5188b071044f39bd9c50c18e78c29c9c4 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Mon, 23 Mar 2020 15:16:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A0=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/View/default/Game/index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Application/Home/View/default/Game/index.html b/Application/Home/View/default/Game/index.html index 45866e391..64f95b56a 100644 --- a/Application/Home/View/default/Game/index.html +++ b/Application/Home/View/default/Game/index.html @@ -586,13 +586,15 @@ function isImg(src) { var img = new Image(); img.src = src; - return true; + if (img.fileSize > 0) { + return true + } + return false } function getGameLogo(obj) { var logo = null; var logoSrc = $(obj).parents('.game-li').eq(0).find('.img-box').children('img').attr('src'); - console.log(isImg(logoSrc)) if (isImg(logoSrc)) { logo = $(obj).parents('.game-li').eq(0).find('.img-box').children('img')[0] } else {