|
|
|
@ -11,6 +11,13 @@
|
|
|
|
|
dataType: "json",
|
|
|
|
|
url: "<?php echo site_url('amp/auto_create/') ?>/" + ic_id,
|
|
|
|
|
success: function (result, textStatus) {
|
|
|
|
|
//当result为空的时候跳过
|
|
|
|
|
if(result.length == 0 || result =='' || undefined || null){
|
|
|
|
|
$(msg_obj).html("<a href='javascript:void(0);' onclick='create_amp_data(" + index + ");' >发生错误,请重试</a>");
|
|
|
|
|
create_amp_data(++index);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$.each(result, function (i, field) {
|
|
|
|
|
if (i === 'data') {
|
|
|
|
|
amp_code = field.amp;
|
|
|
|
|