feat: 1.监管code添加0、-1补传; 2.carinfo表添加X_MCH字段

This commit is contained in:
surenjun 2025-04-18 17:02:20 +08:00
parent 9a8f9bcad9
commit 828dce445e
2 changed files with 6 additions and 5 deletions

View File

@ -111,6 +111,7 @@ struct Index {
FLAG: carInfo.flag, FLAG: carInfo.flag,
BK1: carInfo.bk1, BK1: carInfo.bk1,
BK2: carInfo.bk2, BK2: carInfo.bk2,
X_MCH:carInfo.x_mch,
}) })
console.info('surenjun =>carinfoArrr',JSON.stringify( this.carinfoArr)) console.info('surenjun =>carinfoArrr',JSON.stringify( this.carinfoArr))
} }

View File

@ -696,13 +696,13 @@ export default class Judge {
if (this.disConnectNum < 5 && this.disConnectNum > 0) { if (this.disConnectNum < 5 && this.disConnectNum > 0) {
console.log("wzj", "第" + this.disConnectNum + "次重新发送", JSON.stringify(data)) console.log("wzj", "第" + this.disConnectNum + "次重新发送", JSON.stringify(data))
} }
//断网&网络超时次数计算 if (
if (temp.code == 2300007 || temp.code == 2300028) { //后台连接中心异常
temp.code == -1 || temp.code == 0 ||
//断网&网络超时次数计算
temp.code == 2300007 || temp.code == 2300028) {
this.disConnectNum += 1; this.disConnectNum += 1;
if (this.disConnectNum < 5) { if (this.disConnectNum < 5) {
if (temp.code == 2300028) {
await new Promise(resolve => setTimeout(resolve, 1000)); // 延迟1秒
}
return await this.sendWriteObjectOut(data, filePath) return await this.sendWriteObjectOut(data, filePath)
} }
} }