update:更新快捷搜索
This commit is contained in:
@@ -181,8 +181,11 @@ class CatchQuery extends Query
|
||||
$this->whereRightLike($field, $value);
|
||||
}
|
||||
}
|
||||
|
||||
// = 值搜索
|
||||
$this->where($field, $value);
|
||||
if ($value || is_numeric($value)) {
|
||||
$this->where($field, $value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -296,6 +299,10 @@ class CatchQuery extends Query
|
||||
$this->order($this->getTable() . '.sort', $order);
|
||||
}
|
||||
|
||||
if (in_array('weight', array_keys($this->getFields()))) {
|
||||
$this->order($this->getTable() . '.weight', $order);
|
||||
}
|
||||
|
||||
$this->order($this->getTable() . '.' . $this->getPk(), $order);
|
||||
|
||||
return $this;
|
||||
|
Reference in New Issue
Block a user