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;