Explorar el Código

提交数据信息

lvhao hace 14 horas
padre
commit
faf83e6308
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      core/CoreApp/libraries/Common.php

+ 2 - 2
core/CoreApp/libraries/Common.php

@@ -90,7 +90,7 @@ $this->ci = &get_instance();
 	$this->ci->load->_model('Model_user','user');
 	$this->ci->load->library('session');
 	$user = $this->ci->user->get_api($_SESSION['api']);
-	$where = "id != 2 and id != 14 and id != 11 and id != 15 and id != 10 and id != 1 and id != 4";
+	$where = " `show` = 1 and id != 2 and id != 14 and id != 11 and id != 15 and id != 10 and id != 1 and id != 4";
     $result = $this->ci->warehouse->find_all($where,'*',$order,0,$num);
     return $result;
 	}
@@ -98,7 +98,7 @@ $this->ci = &get_instance();
     function _dlzwarehouse($classid,$num=100,$order='px asc')
     {
 	$this->ci->load->_model('Model_warehouse','warehouse');
-    $where = "id != 2 and id != 7 and id != 8 and id != 9 and id != 14 and id != 11 and id != 15 and id != 10 and id != 1 and id != 4";
+    $where = " `show` = 1 and id != 2 and id != 7 and id != 8 and id != 9 and id != 14 and id != 11 and id != 15 and id != 10 and id != 1 and id != 4";
     $result = $this->ci->warehouse->find_all($where,'*',$order,0,$num);
     return $result;
 	}