瀏覽代碼

ppt 新增 中间页封底页

gmy 4 月之前
父節點
當前提交
eedd9902fe
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      controllers/image_conf_controller.go

+ 2 - 2
controllers/image_conf_controller.go

@@ -60,7 +60,7 @@ func (this *ImageConfController) GetImageMaterial() {
 	var condition string
 	var pars []interface{}
 
-	condition += ` AND conf_type=? `
+	condition += ` conf_type=? `
 	pars = append(pars, confType)
 
 	if imageType > 0 {
@@ -75,7 +75,7 @@ func (this *ImageConfController) GetImageMaterial() {
 	condition += ` ORDER BY modify_time DESC `
 
 	condition += ` LIMIT ?, ? `
-	pars = append(pars, pageSize, startSize)
+	pars = append(pars, startSize, pageSize)
 
 	imageConfList, err := models.GetImageConfByCondition(condition, pars)