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