xyxie 1 년 전
부모
커밋
c539361a3b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      services/data/edb_classify.go

+ 1 - 0
services/data/edb_classify.go

@@ -303,6 +303,7 @@ func AddEdbClassify(classifyName string, parentId, level int, classifyType uint8
 		return
 	}
 	if parentId == 0 { //一级目录的rootId等于自己本身
+		classifyInfo.ClassifyId = int(newId)
 		classifyInfo.RootId = int(newId)
 		err = classifyInfo.Update([]string{"RootId"})
 		if err != nil {