Browse Source

更新内容

moshaorui 1 month ago
parent
commit
36c33ce3c0
1 changed files with 5 additions and 8 deletions
  1. 5 8
      public/static/js/script.js

+ 5 - 8
public/static/js/script.js

@@ -264,7 +264,8 @@ $(document).ready(function() {
                 data: { reset: 0 },
                 success: function(response) {
                     console.log(response);
-                    if (response.status == 2) {
+                    if (response.status == "2") {
+                        console.log('clean');
                         clearInterval(intervalId);
                         layer.close(loadIndex); // 关闭加载层
                     }
@@ -356,9 +357,7 @@ $(document).ready(function() {
                 dataType: 'json',
                 data: { reset: 1 },
                 success: function(response) {
-                    if (response.status == 0 || response.status == 2) {
-                        checkDownloadStatus();
-                    }
+                    checkDownloadStatus();
                 }
             });
         });
@@ -471,10 +470,8 @@ $(document).ready(function() {
             dataType: 'json',
             data: { reset: 1 },
             success: function(response) {
-                if (response.status == 0 || response.status == 2) {
-                    downdHref();
-                    checkDownloadStatus();
-                }
+                downdHref();
+                checkDownloadStatus();
             }
         });
     });