1.子进程响应超时时间更改

This commit is contained in:
lixiao 2025-05-27 09:03:13 +08:00
parent 8f9b6650f4
commit 74fe792004
2 changed files with 16 additions and 14 deletions

View File

@ -84,24 +84,26 @@ export default async function writeObjectOutNew(data, filePath): Promise<WR> {
emitter.emit({
eventId: 1
})
tick = null
reject({
code: 1, data: {
code: 2300007
}
code: 2300028,
message: "children process not response"
})
}, 15 * 1000)
}, 20 * 1000)
console.log("wzj process start,项目代码:", params.data.param.ksxm)
globalThis.serviceExtProxy.processData("1", (errorCode: number, retVal: string) => {
console.log("lixiao process accept,项目代码:", params.data.param.ksxm, " 错误码:", errorCode, JSON.stringify(retVal))
clearTimeout(tick)
let result = JSON.parse(retVal)
if (result.code === 0) {
resolve(result.data)
} else {
emitter.emit({
eventId: 1
})
reject(result.data)
if (tick != null) {
clearTimeout(tick)
let result = JSON.parse(retVal)
if (result.code === 0) {
resolve(result.data)
} else {
emitter.emit({
eventId: 1
})
reject(result.data)
}
}
});
})

View File

@ -1,7 +1,7 @@
//考试回放开关
export const judgeConfig = {
// 外壳版本号
version: "2025.05.21.01",
version: "2025.05.26.01",
//本地目录开关
isTrajectoryOpen: false,
//是否开启拍照