|
|
@@ -755,8 +755,12 @@ class Goodimglibrary extends Start_Controller {
|
|
|
|
|
|
$this->db->select('id,features, title, sku, zh, jm');
|
|
|
$this->db->from('crowd_goods');
|
|
|
- $category = $params['category'];
|
|
|
- $this->db->like('features',$category);
|
|
|
+ if(!empty($params['category'])){
|
|
|
+ $this->db->like('features',$params['category']);
|
|
|
+ }
|
|
|
+ if(!empty($params['jm'])){
|
|
|
+ $this->db->like('jm',$params['jm']);
|
|
|
+ }
|
|
|
if(!empty($params['color'])){
|
|
|
$this->db->like('features',$params['color']);
|
|
|
}
|