From ce8a077e070853493703cfa68e6a83e7dd210b2c Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 19 Jun 2025 15:54:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8C=89=E9=92=AE=E5=9B=9E?= =?UTF-8?q?=E8=B0=83=E6=95=B0=E6=8D=AE=EF=BC=8C=E7=AE=80=E5=8C=96=E4=B8=BA?= =?UTF-8?q?=E4=BB=85=E4=BD=BF=E7=94=A8=E7=B4=A2=E5=BC=95=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chain/message.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/chain/message.py b/app/chain/message.py index 2a474dd1..f16bf782 100644 --- a/app/chain/message.py +++ b/app/chain/message.py @@ -742,7 +742,7 @@ class MessageChain(ChainBase): buttons.append([{ "text": button_text, - "callback_data": f"select_{_current_page * self._page_size + i}" + "callback_data": f"select_{i}" }]) else: # 多按钮一行的情况,使用简化文本 @@ -750,7 +750,7 @@ class MessageChain(ChainBase): current_row.append({ "text": button_text, - "callback_data": f"select_{_current_page * self._page_size + i}" + "callback_data": f"select_{i}" }) # 如果当前行已满或者是最后一个按钮,添加到按钮列表 @@ -837,7 +837,7 @@ class MessageChain(ChainBase): buttons.append([{ "text": button_text, - "callback_data": f"download_{_current_page * self._page_size + i}" + "callback_data": f"download_{i}" }]) else: # 多按钮一行的情况,使用简化文本 @@ -845,7 +845,7 @@ class MessageChain(ChainBase): current_row.append({ "text": button_text, - "callback_data": f"download_{_current_page * self._page_size + i}" + "callback_data": f"download_{i}" }) # 如果当前行已满或者是最后一个按钮,添加到按钮列表