mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
修正input助手函数
This commit is contained in:
@@ -125,10 +125,9 @@ if (!function_exists('input')) {
|
|||||||
}
|
}
|
||||||
if ($pos = strpos($key, '.')) {
|
if ($pos = strpos($key, '.')) {
|
||||||
// 指定参数来源
|
// 指定参数来源
|
||||||
$method = substr($key, 0, $pos);
|
list($method, $key) = explode('.', $key);
|
||||||
if (in_array($method, ['get', 'post', 'put', 'patch', 'delete', 'param', 'request', 'session', 'cookie', 'server', 'env', 'path', 'file'])) {
|
if (!in_array($method, ['get', 'post', 'put', 'patch', 'delete', 'param', 'request', 'session', 'cookie', 'server', 'env', 'path', 'file'])) {
|
||||||
$key = substr($key, $pos + 1);
|
$key = $method . '.' . $key;
|
||||||
} else {
|
|
||||||
$method = 'param';
|
$method = 'param';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user