Bläddra i källkod

默认图片处理

gmy 3 veckor sedan
förälder
incheckning
c4497b2f6b
2 ändrade filer med 3 tillägg och 3 borttagningar
  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)