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