mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进Input类
This commit is contained in:
@@ -410,7 +410,7 @@ class Input
|
|||||||
} else {
|
} else {
|
||||||
if (is_array($filter)) {
|
if (is_array($filter)) {
|
||||||
$result = $filter;
|
$result = $filter;
|
||||||
} elseif (is_string($filter) && strpos($filter, ',')) {
|
} elseif (is_string($filter) && false === strpos($filter, '/') && strpos($filter, ',')) {
|
||||||
$result = explode(',', $filter);
|
$result = explode(',', $filter);
|
||||||
} else {
|
} else {
|
||||||
$result = [$filter];
|
$result = [$filter];
|
||||||
|
|||||||
@@ -503,7 +503,7 @@ class Query
|
|||||||
* 支持使用数据库字段和方法
|
* 支持使用数据库字段和方法
|
||||||
* @access public
|
* @access public
|
||||||
* @param string|array $field 字段名
|
* @param string|array $field 字段名
|
||||||
* @param string $value 字段值
|
* @param mixed $value 字段值
|
||||||
* @return integer
|
* @return integer
|
||||||
*/
|
*/
|
||||||
public function setField($field, $value = '')
|
public function setField($field, $value = '')
|
||||||
|
|||||||
Reference in New Issue
Block a user