From 797f8f164e70f87843f6f806a647231edab12483 Mon Sep 17 00:00:00 2001 From: taynpg Date: Wed, 9 Apr 2025 18:17:13 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=AD=A3=E7=A7=98?= =?UTF-8?q?=E9=92=A5key=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/client.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/client/client.cpp b/client/client.cpp index b6c478c..4ce5c9e 100644 --- a/client/client.cpp +++ b/client/client.cpp @@ -1090,6 +1090,7 @@ void CClient::handle_frame(CFrameBuffer* buf) buf->type_ = TYPE_GET_DIRFILES_DONE; msg_info.str = out; } + msg_info.id = buf->tid_; serialize(msg_info, &buf->data_, buf->len_); std::swap(buf->tid_, buf->fid_); if (!send_frame(buf)) { @@ -1206,14 +1207,9 @@ void CClient::handle_frame(CFrameBuffer* buf) break; } msg_info.str = variable_and_reverse_files(msg_info.str); + msg_info.id = buf->tid_; serialize(msg_info, &buf->data_, buf->len_); - CMessageInfo tp(buf->fid_); - if (!deserialize(buf->data_, buf->len_, tp)) { - TLOGE("{} GetList deserialize failed.", __LINE__); - break; - } - std::swap(buf->tid_, buf->fid_); buf->type_ = TYPE_REQUEST_UPDATE_LIST; if (!send_frame(buf)) { @@ -1240,6 +1236,7 @@ void CClient::handle_frame(CFrameBuffer* buf) buf->type_ = TYPE_UNCONFIRM_UPDATE_LIST; } } + msg_info.id = buf->tid_; serialize(msg_info, &buf->data_, buf->len_); std::swap(buf->tid_, buf->fid_); if (!send_frame(buf)) {