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({ emitter.emit({
eventId: 1 eventId: 1
}) })
tick = null
reject({ reject({
code: 1, data: { code: 2300028,
code: 2300007 message: "children process not response"
}
}) })
}, 15 * 1000) }, 20 * 1000)
console.log("wzj process start,项目代码:", params.data.param.ksxm) console.log("wzj process start,项目代码:", params.data.param.ksxm)
globalThis.serviceExtProxy.processData("1", (errorCode: number, retVal: string) => { globalThis.serviceExtProxy.processData("1", (errorCode: number, retVal: string) => {
console.log("lixiao process accept,项目代码:", params.data.param.ksxm, " 错误码:", errorCode, JSON.stringify(retVal)) console.log("lixiao process accept,项目代码:", params.data.param.ksxm, " 错误码:", errorCode, JSON.stringify(retVal))
clearTimeout(tick) if (tick != null) {
let result = JSON.parse(retVal) clearTimeout(tick)
if (result.code === 0) { let result = JSON.parse(retVal)
resolve(result.data) if (result.code === 0) {
} else { resolve(result.data)
emitter.emit({ } else {
eventId: 1 emitter.emit({
}) eventId: 1
reject(result.data) })
reject(result.data)
}
} }
}); });
}) })

View File

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