Compare commits
No commits in common. "fd44196a1d074ec8b0125d2c39765905af529d83" and "066b5ca44be1005b498f024545bd58ec78e0f78e" have entirely different histories.
fd44196a1d
...
066b5ca44b
@ -694,12 +694,15 @@ export default class Judge {
|
||||
if (this.disConnectNum < 5 && this.disConnectNum > 0) {
|
||||
console.log("wzj", "第" + this.disConnectNum + "次重新发送", JSON.stringify(data))
|
||||
}
|
||||
// 不是成功的接口就需要补传
|
||||
if (temp.code != 1) {
|
||||
if (
|
||||
//后台连接中心异常
|
||||
temp.code == -1 || temp.code == 0 ||
|
||||
//断网&网络超时次数计算
|
||||
temp.code == 2300007 || temp.code == 2300028) {
|
||||
this.disConnectNum += 1;
|
||||
if (this.disConnectNum < 5) {
|
||||
if (temp.code == 2300028) {
|
||||
await new Promise(resolve => setTimeout(resolve, 2000)); // 延迟1秒
|
||||
await new Promise(resolve => setTimeout(resolve, 1000)); // 延迟1秒
|
||||
}
|
||||
return await this.sendWriteObjectOut(data, filePath)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user