Pārlūkot izejas kodu

Merge branch 'ETA_2.4.0' into debug

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

+ 1 - 1
controllers/ppt_v2.go

@@ -195,7 +195,7 @@ func (this *PptV2Controller) AddPpt() {
 		}
 		msg = "新增成功"
 
-		excelReferences := make([]*excel.ReferencedExcelConfig, len(req.ExcelReferences))
+		excelReferences := make([]*excel.ReferencedExcelConfig, 0)
 		for _, r := range req.ExcelReferences {
 			refItem := excel.ReferencedExcelConfig{
 				UniqueCode:   r.UniqueCode,