Showing
4 changed files
with
6 additions
and
5 deletions
| ... | @@ -127,7 +127,8 @@ export function downloadAsyncExportByTaskId(taskId, options = {}) { | ... | @@ -127,7 +127,8 @@ export function downloadAsyncExportByTaskId(taskId, options = {}) { |
| 127 | if (reader.result && reader.result != null && reader.result != "") { | 127 | if (reader.result && reader.result != null && reader.result != "") { |
| 128 | try { | 128 | try { |
| 129 | const jsonData = JSON.parse(reader.result); | 129 | const jsonData = JSON.parse(reader.result); |
| 130 | - if (jsonData.code == "10103") { | 130 | + console.log(jsonData); |
| 131 | + if (jsonData.code == "100211") { | ||
| 131 | if (retryCount < maxRetry) { | 132 | if (retryCount < maxRetry) { |
| 132 | setTimeout(() => { | 133 | setTimeout(() => { |
| 133 | downloadAsyncExportByTaskId(taskId, { | 134 | downloadAsyncExportByTaskId(taskId, { | ... | ... |
| ... | @@ -548,7 +548,7 @@ export default { | ... | @@ -548,7 +548,7 @@ export default { |
| 548 | if (JSON.parse(reader.result)) { | 548 | if (JSON.parse(reader.result)) { |
| 549 | debugger; | 549 | debugger; |
| 550 | let jsonData = JSON.parse(reader.result); | 550 | let jsonData = JSON.parse(reader.result); |
| 551 | - if (jsonData.code == "10103") { | 551 | + if (jsonData.code == "100211") { |
| 552 | // 检查重试次数 | 552 | // 检查重试次数 |
| 553 | if (retryCount < 50) { | 553 | if (retryCount < 50) { |
| 554 | // 延迟后重试 | 554 | // 延迟后重试 | ... | ... |
| ... | @@ -430,14 +430,14 @@ export default { | ... | @@ -430,14 +430,14 @@ export default { |
| 430 | await this.callOtherApi(); // 调用其他接口 | 430 | await this.callOtherApi(); // 调用其他接口 |
| 431 | } else if (result.data.status === "FAILED") { | 431 | } else if (result.data.status === "FAILED") { |
| 432 | this.stopPolling(); | 432 | this.stopPolling(); |
| 433 | - this.handleFailure(); | 433 | + // this.handleFailure(); |
| 434 | this.alertWarningMsg(result.data.errorMessage); | 434 | this.alertWarningMsg(result.data.errorMessage); |
| 435 | } else { | 435 | } else { |
| 436 | this.startPolling(); // 启动轮询 | 436 | this.startPolling(); // 启动轮询 |
| 437 | } | 437 | } |
| 438 | } else { | 438 | } else { |
| 439 | this.stopPolling(); | 439 | this.stopPolling(); |
| 440 | - this.handleFailure(); | 440 | + // this.handleFailure(); |
| 441 | } | 441 | } |
| 442 | // 其他状态继续轮询 | 442 | // 其他状态继续轮询 |
| 443 | } catch (error) { | 443 | } catch (error) { | ... | ... |
| ... | @@ -1368,7 +1368,7 @@ export default { | ... | @@ -1368,7 +1368,7 @@ export default { |
| 1368 | if (JSON.parse(reader.result)) { | 1368 | if (JSON.parse(reader.result)) { |
| 1369 | debugger; | 1369 | debugger; |
| 1370 | let jsonData = JSON.parse(reader.result); | 1370 | let jsonData = JSON.parse(reader.result); |
| 1371 | - if (jsonData.code == "10103") { | 1371 | + if (jsonData.code == "100211") { |
| 1372 | // 检查重试次数 | 1372 | // 检查重试次数 |
| 1373 | if (retryCount < 50) { | 1373 | if (retryCount < 50) { |
| 1374 | // 延迟后重试 | 1374 | // 延迟后重试 | ... | ... |
-
Please register or login to post a comment