Browse Source

Merge branch 'fixbug_8292_move_sort' into debug

kobe6258 3 hours ago
parent
commit
e922a08e13
1 changed files with 2 additions and 1 deletions
  1. 2 1
      services/speech_recognition.go

+ 2 - 1
services/speech_recognition.go

@@ -333,7 +333,8 @@ func MoveSpeechMenu(req speech_recognition.SpeechRecognitionMenuMoveReq) (err er
 				err = fmt.Errorf("获取父级目录下的同名目录失败, Err: %s", e.Error())
 				return
 			}
-			if exists != nil {
+			if exists != nil && exists.SpeechRecognitionMenuId > 0 {
+				err = fmt.Errorf("移动失败,目录名称已存在")
 				errMsg = "移动失败,目录名称已存在"
 				return
 			}