From 3f8ebbd16d97ca0e9403cd517a2258d0b8bc3c1f Mon Sep 17 00:00:00 2001 From: wangzhongjie Date: Mon, 8 Sep 2025 13:52:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A1=A3=E4=BD=8D=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/common/utils/tempRequest.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/entry/src/main/ets/common/utils/tempRequest.ts b/entry/src/main/ets/common/utils/tempRequest.ts index aca01882..3b474a01 100644 --- a/entry/src/main/ets/common/utils/tempRequest.ts +++ b/entry/src/main/ets/common/utils/tempRequest.ts @@ -122,7 +122,9 @@ export default async function tempRequest(req: any): Promise { reject({ code: e.code }) - + } finally { + httpRequest.destroy(); + console.log('httpRequest destroy finally') } }) @@ -162,12 +164,12 @@ async function xmlToJson(result, url) { if (result.length > 10000) { setTimeout(() => { let res = deeml(xmlArr); - console.log("xmlToJson end",JSON.stringify(res) ); + console.log("xmlToJson end", JSON.stringify(res)); resolve(res) }, 10000) } else { let res = deeml(xmlArr); - console.log("xmlToJson end",JSON.stringify(res) ); + console.log("xmlToJson end", JSON.stringify(res)); resolve(res) }