소스 검색

增加 商品专区逻辑

abiao 3 년 전
부모
커밋
8b7ffc8b67
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      go/gopath/src/fohow.com/apps/models/product_model/product.go

+ 1 - 1
go/gopath/src/fohow.com/apps/models/product_model/product.go

@@ -136,7 +136,7 @@ func GetLatest(page, perPage, recommend, priceSort, saleSort, saleZone int64, pt
 	}
 	var saleZoneSql, priceSql, saleSql, orderSql string
 	if saleZone > int64(0) {
-		saleZoneSql = fmt.Sprintf("and sale_zone=?", saleZone)
+		saleZoneSql = fmt.Sprintf("and sale_zone=%d", saleZone)
 	}
 	if priceSort == int64(1) {
 		//降序