@@ -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 := `