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