diff --git a/application/views/amp_editor.php b/application/views/amp_editor.php index 1f6d2db4..108b2a30 100644 --- a/application/views/amp_editor.php +++ b/application/views/amp_editor.php @@ -123,7 +123,7 @@ $.modaldialog.error('AMP语法错误,请看下方错误详情'); $('#amp_error').html(error_msg); } else { - $.modaldialog.success(responseText.value); + $.modaldialog.success('保存成功!'); } }, error: function (responseText, statusText, xhr, form) { diff --git a/application/views/bootstrap3/refresh_amp_urls.php b/application/views/bootstrap3/refresh_amp_urls.php index c8c26357..cd51c9dc 100644 --- a/application/views/bootstrap3/refresh_amp_urls.php +++ b/application/views/bootstrap3/refresh_amp_urls.php @@ -29,7 +29,15 @@ "amp_status": 1 }, success: function (result, textStatus) { - $(msg_obj).html("\u0041\u004d\u0050\u66f4\u65b0\u6210\u529f\u0021"); + if (result.name === 'no') { + error_msg=''; + $.each(responseText.value, function (index, element) { + error_msg=error_msg+'line '+element.line+' col '+element.col+' :'+element.message+' '; + }); + $(msg_obj).html("保存失败,AMP语法错误!"+''); + }else{ + $(msg_obj).html("\u0041\u004d\u0050\u66f4\u65b0\u6210\u529f\u0021"); + } create_amp_data(++index); }, error: function () { @@ -69,8 +77,8 @@ # - URL - 更新进度 + URL + 更新进度