Skip to content

Commit

Permalink
fix: 修复自动登录的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhuapiaoyuan committed Dec 29, 2023
1 parent 8d9e74a commit 2fa28f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/chatgpt/service/chatgpt_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 2fa28f7

Please sign in to comment.