Selaa lähdekoodia

qs xcx ProdutEmploySort

abiao 1 vuosi sitten
vanhempi
commit
766b2ad575
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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

@@ -605,7 +605,7 @@ func DepartGetProductsByCatId(cId, saleZone, page, perPage, priceSort, saleSort,
 	}
 
 	var cidSql string
-	if cId != 0 && cId != ProdutEmploySort {
+	if cId != 0 {
 		cidSql = fmt.Sprintf(" and a.category_id=%d", cId)
 	} else {
 		cidSql = fmt.Sprintf(" and a.category_id!=%d", ProdutEmploySort)