From cf39c1fb83eac7a2c41c038e6b425af086775b27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Fri, 22 Feb 2019 11:05:55 +0800 Subject: [PATCH] =?UTF-8?q?amp=E7=94=9F=E6=88=90=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=A9=BA=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/bootstrap3/refresh_amp_urls.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/application/views/bootstrap3/refresh_amp_urls.php b/application/views/bootstrap3/refresh_amp_urls.php index 1c825239..8de3adc3 100644 --- a/application/views/bootstrap3/refresh_amp_urls.php +++ b/application/views/bootstrap3/refresh_amp_urls.php @@ -11,6 +11,13 @@ dataType: "json", url: "/" + ic_id, success: function (result, textStatus) { + //当result为空的时候跳过 + if(result.length == 0 || result =='' || undefined || null){ + $(msg_obj).html("发生错误,请重试"); + create_amp_data(++index); + return; + } + $.each(result, function (i, field) { if (i === 'data') { amp_code = field.amp;