From 2fa28f70a6de71a953e74db0d817801d128183cb Mon Sep 17 00:00:00 2001 From: abc Date: Fri, 29 Dec 2023 10:44:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/chatgpt/service/chatgpt_session.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/chatgpt/service/chatgpt_session.go b/modules/chatgpt/service/chatgpt_session.go index a22be45..e3135a4 100644 --- a/modules/chatgpt/service/chatgpt_session.go +++ b/modules/chatgpt/service/chatgpt_session.go @@ -50,7 +50,8 @@ func (s *ChatgptSessionService) ModifyAfter(ctx g.Ctx, method string, param map[ return } // 如果是手工模式不用处理 - if param["mode"] == 0 { + if param["mode"] != 0 { + g.Log().Debug(ctx, "手工模式不需要刷新") return } officialSession := gjson.New(param["officialSession"])