diff --git a/entry/src/main/ets/tcp2byte/index.ts b/entry/src/main/ets/tcp2byte/index.ts index 3f37d965..a7531259 100644 --- a/entry/src/main/ets/tcp2byte/index.ts +++ b/entry/src/main/ets/tcp2byte/index.ts @@ -41,7 +41,7 @@ export default async function tcp2ByteRequest(data): Promise { //收到消息 tcpClient.on('message', (data) => { - const res = handReceiveMessage(tcpClient, sendData, data) + const res = handReceiveMessage(tcpClient, sendData, data.message) if(res){ tcpClient.close() resolve(res)