소스 검색

默认图片处理

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)