From c7d4159302199f10b27cc24f6786d95a0909dcc0 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Wed, 24 Dec 2025 11:37:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=81=8F=E7=A7=BB=E8=A1=A8-?= =?UTF-8?q?=E6=9C=80=E7=BB=88=E8=A7=A3=E5=86=B3=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRC.Core.SCP/Service/CStoreSCPService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/IRC.Core.SCP/Service/CStoreSCPService.cs b/IRC.Core.SCP/Service/CStoreSCPService.cs index 1c7bf6392..1b836a0f2 100644 --- a/IRC.Core.SCP/Service/CStoreSCPService.cs +++ b/IRC.Core.SCP/Service/CStoreSCPService.cs @@ -561,10 +561,14 @@ namespace IRaCIS.Core.SCP.Service bot.Add(botOffset); - botOffset += (uint)data.Length + 8; // 累加帧长度 + botOffset += (uint)data.Length; + while (offset < data.Length) { + botOffset += 8; + + int size = Math.Min(fragmentSize, data.Length - offset); var buffer = new byte[size]; Buffer.BlockCopy(data, offset, buffer, 0, size);