补传优化
This commit is contained in:
parent
e164aa710a
commit
4c230f75f0
@ -80,9 +80,20 @@ export default async function writeObjectOutNew(data, filePath): Promise<WR> {
|
||||
}
|
||||
let fn = () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
let tick = setTimeout(() => {
|
||||
emitter.emit({
|
||||
eventId: 1
|
||||
})
|
||||
reject({
|
||||
code: 1, data: {
|
||||
code: 2300007
|
||||
}
|
||||
})
|
||||
}, 15 * 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)
|
||||
@ -92,7 +103,6 @@ export default async function writeObjectOutNew(data, filePath): Promise<WR> {
|
||||
})
|
||||
reject(result.data)
|
||||
}
|
||||
// console.log(`js-test index.ets processData, errorCode: ${errorCode}, retVal: ${retVal}`);
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user