浏览代码

fix:add debug

jimmyyem 5 月之前
父节点
当前提交
2e7435f058

+ 1 - 0
internal/logic/chatrecords/gpts_get_api_message_logic.go

@@ -58,6 +58,7 @@ func (l *GptsGetApiMessageLogic) GptsGetApiMessage(req *types.GptMessageReq, tok
 	}
 
 	user := fmt.Sprintf("%s:%d", userId, *req.AgentId)
+	fmt.Printf("user=%v ConversationId=%v firstId=%v, limit=%v\n", user, *req.ConversationId, firstId, limit)
 	response, err := dify.GetChatHistory(user, *req.ConversationId, firstId, limit)
 	if err != nil {
 		return nil, err

+ 1 - 0
internal/logic/chatrecords/gpts_get_api_session_logic.go

@@ -56,6 +56,7 @@ func (l *GptsGetApiSessionLogic) GptsGetApiSession(req *types.GptsSessionReq, to
 	}
 
 	user := fmt.Sprintf("%s:%d", userId, *req.AgentId)
+	fmt.Printf("user=%v lastId=%v, limit=%v\n", user, lastId, limit)
 	response, err := dify.GetSessionList(user, lastId, limit)
 	if err != nil {
 		return nil, err