Compare commits

...

4 Commits

2 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@
/entry/src/main/cpp /entry/src/main/cpp
/entry/src/main/ets/pages/judgeSDK/utils/judgeConfig.ts /entry/src/main/ets/pages/judgeSDK/utils/judgeConfig.ts
/build-profile.json5 /build-profile.json5
.DS_Store

View File

@ -700,6 +700,9 @@ export default class Judge {
temp.code == 2300007 || temp.code == 2300028) { 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)
} }
} }