diff --git a/public/index.php b/public/index.php index 7188a37..963f325 100644 --- a/public/index.php +++ b/public/index.php @@ -160,7 +160,7 @@ function show_index() $("#" + data.data.id).html("" + data.data.src + ""); $("#" + data.data.id).prev().text('上传成功'); // $("#textareaId").append(data.src + "\n"); - queue[data.data.id].upload = true; + } else { $("#" + data.data.id).html("上传失败"); $("#" + data.data.id).prev().text('上传失败'); @@ -169,7 +169,9 @@ function show_index() error: function(data) { alert('上传失败'); } - }); + }); + + queue[data.data.id].upload = true; } });