@@ -56,6 +56,9 @@ func (l *SubmitApiChatLogic) SubmitApiChat(req *types.ChatRecordsInfo, w http.Re
if req.BotId == nil || *req.BotId == 0 {
return
}
+ if req.Content == nil || *req.Content == "" {
+ return
+ }
if req.SessionId != nil && *req.SessionId > 0 {
sessionId = *req.SessionId