Bläddra i källkod

增加 商品专区逻辑

abiao 3 år sedan
förälder
incheckning
8b7ffc8b67
1 ändrade filer med 1 tillägg och 1 borttagningar
  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) {
 		//降序