/**
* 重写where
* @param mixed $where
* return CU_Model $this->db
*/
protected function where()
{
$args = func_get_args();
if (is_array($args[0])) {
foreach ($args[0] as $k => $wh) {
if (is_array($wh)) {
$this->db->where_in($k, $wh);
} else {
$this->db->where($k, $wh);
}
}
} else {
if (empty($args[0])) {
return $this->db;
}
call_user_func_array(array($this->db, 'where'), $args);
}
return $this->db;
}