瀏覽代碼

默认图片处理

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

+ 1 - 1
controllers/image_conf_controller.go

@@ -89,7 +89,7 @@ func (this *ImageConfController) GetImageMaterial() {
 		return
 	}
 
-	condition += ` ORDER BY modify_time DESC `
+	condition += ` ORDER BY create_time asc `
 
 	condition += ` LIMIT ?, ? `
 	pars = append(pars, startSize, pageSize)

+ 2 - 2
controllers/ppt_v2.go

@@ -421,7 +421,7 @@ func (this *PptV2Controller) DetailPpt() {
 		condition += ` AND image_type=? `
 		pars = append(pars, 2)
 
-		condition += ` ORDER BY modify_time DESC `
+		condition += ` ORDER BY create_time asc `
 
 		imageConfList, err := models.GetImageConfByCondition(condition, pars)
 
@@ -436,7 +436,7 @@ func (this *PptV2Controller) DetailPpt() {
 		condition += ` AND image_type=? `
 		pars = append(pars, 3)
 
-		condition += ` ORDER BY modify_time DESC `
+		condition += ` ORDER BY create_time asc `
 
 		imageConfList, err := models.GetImageConfByCondition(condition, pars)