Browse Source

默认背景、封底图

gmy 2 weeks ago
parent
commit
c9918fc5e0
1 changed files with 8 additions and 4 deletions
  1. 8 4
      controllers/ppt_v2.go

+ 8 - 4
controllers/ppt_v2.go

@@ -458,11 +458,11 @@ func (this *PptV2Controller) DetailPpt() {
 		}
 	}
 
-	var condition string
-	var pars []interface{}
-
 	// 维护封底 背景图
 	if pptInfo.CurrentBackgroundImg != "" {
+		var condition string
+		var pars []interface{}
+
 		condition += ` conf_type=? `
 		pars = append(pars, 1)
 
@@ -477,7 +477,11 @@ func (this *PptV2Controller) DetailPpt() {
 			pptInfo.CurrentBackgroundImg = imageConfList[0].Url
 			pptInfo.CurrentBackgroundImgId = imageConfList[0].ImageConfId
 		}
-	} else if pptInfo.BackCoverImg != "" {
+	}
+	if pptInfo.BackCoverImg != "" {
+		var condition string
+		var pars []interface{}
+
 		condition += ` conf_type=? `
 		pars = append(pars, 1)