feat:request优化

This commit is contained in:
surenjun 2025-01-01 09:38:33 +08:00
parent 17ef3ce4be
commit 0ddf1ac518
2 changed files with 3 additions and 3 deletions

View File

@ -106,9 +106,9 @@ export default async function request(req: any) {
httpRequest.destroy(); httpRequest.destroy();
switch (code){ switch (code){
//断网 //断网
case 2300007: return 2300007 case 2300007: return {code:2300007}
// 超时 // 超时
case 2300028: return 2300028 case 2300028: return {code:2300028}
default: default:
} }
return {code:e.code} return {code:e.code}

View File

@ -200,7 +200,7 @@ export default class Judge {
handleUdp(msg) handleUdp(msg)
const udpIndex = globalThis.udpIndex; const udpIndex = globalThis.udpIndex;
if (udpIndex % 5 === 0) { if (udpIndex % 5 === 0) {
// handDistance(); handDistance();
} }
}) })