From 4bb1f6f139f24657aebe22eaa1052b95b21eaa43 Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Tue, 25 Mar 2025 16:53:41 +0800 Subject: [PATCH] 'commit' --- AI/WxMini/Utils/MySQLUtil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AI/WxMini/Utils/MySQLUtil.py b/AI/WxMini/Utils/MySQLUtil.py index 5da06b65..1c56f17d 100644 --- a/AI/WxMini/Utils/MySQLUtil.py +++ b/AI/WxMini/Utils/MySQLUtil.py @@ -68,7 +68,7 @@ async def get_chat_log_by_session(mysql_pool, session_id, page=1, page_size=10): # 查询分页数据 await cur.execute( "SELECT id, session_id, user_input, model_response, audio_url, duration, create_time " - "FROM t_chat_log WHERE session_id = %s ORDER BY id DESC LIMIT %s OFFSET %s", + "FROM t_chat_log WHERE session_id = %s ORDER BY id asc LIMIT %s OFFSET %s", (session_id, page_size, offset) ) records = await cur.fetchall()