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) }