mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
改进Input类
This commit is contained in:
@@ -261,7 +261,7 @@ class Input
|
||||
if (0 === strpos($name, '?')) {
|
||||
return self::has(substr($name, 1), $input);
|
||||
}
|
||||
if (!empty($input)) {
|
||||
|
||||
$data = $input;
|
||||
$name = (string) $name;
|
||||
if ('' != $name) {
|
||||
@@ -291,9 +291,7 @@ class Input
|
||||
// 强制类型转换
|
||||
static::typeCast($data, $type);
|
||||
}
|
||||
} else {
|
||||
$data = [];
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user