Explorar o código

fix:ppt转报告bug修复

Roc hai 7 meses
pai
achega
7fcfcccd05
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      services/ppt.go

+ 1 - 1
services/ppt.go

@@ -107,7 +107,7 @@ func SavePPTReport(pptId, classifyId int, title string, adminInfo *system.Admin)
 		return
 	}
 	twoClassify, hasTwo = classifyMap[baseClassify.ParentId]
-	if ok {
+	if hasTwo {
 		threeClassify, hasThird = classifyMap[twoClassify.ParentId]
 	}