Browse Source

products 检索更新

shen 4 years ago
parent
commit
3fa1906bda
1 changed files with 1 additions and 1 deletions
  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

@@ -246,7 +246,7 @@ func GetProductsByCatId(cId, page, perPage, priceSort, saleSort int64, words str
 	}
 
 	if len(words) > 0 {
-		cidSql = cidSql + fmt.Sprintf(" and key_words like %s", "%"+words+"%")
+		cidSql = cidSql + fmt.Sprintf(" and key_words like '%s'", "%"+words+"%")
 	}
 
 	sql := `