|
@@ -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();
|
|
|
}
|
|
|
});
|
|
|
});
|