feat: enhance localization support for KnowledgeFAQ import and conversation error messages

This commit is contained in:
mlogclub
2026-06-02 20:12:04 +08:00
parent 30b4c504d9
commit 77be1b4f5e
4 changed files with 175 additions and 2 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ func (s *conversationService) getLatestNotFinishedByCustomerID(db *gorm.DB, cust
func (s *conversationService) Create(externalUser openidentity.ExternalUser, channelID, aiAgentID int64) (*models.Conversation, error) {
aiAgent := AIAgentService.Get(aiAgentID)
if aiAgent == nil || aiAgent.Status != enums.StatusOk {
return nil, errorsx.InvalidParam("AI Agent not found")
return nil, errorsx.InvalidParam("AI Agent 不存在")
}
var conversation *models.Conversation