Pārlūkot izejas kodu

移动素材库,名称判断

xyxie 2 mēneši atpakaļ
vecāks
revīzija
a25f3cf43b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      controllers/material/material.go

+ 1 - 1
controllers/material/material.go

@@ -449,7 +449,7 @@ func (this *MaterialController) ClassifyMove() {
 		return
 	}
 	if materialClassifyInfo.ParentId != req.ParentClassifyId {
-		count, err := material.GetMaterialClassifyNameNotSelfCount(materialClassifyInfo.ClassifyId, materialClassifyInfo.ClassifyName, materialClassifyInfo.ParentId)
+		count, err := material.GetMaterialClassifyNameNotSelfCount(materialClassifyInfo.ClassifyId, materialClassifyInfo.ClassifyName, req.ParentClassifyId)
 		if err != nil {
 			br.Msg = "判断名称是否已存在失败"
 			br.ErrMsg = "判断名称是否已存在失败,Err:" + err.Error()