Skip to content
This repository was archived by the owner on Jan 4, 2020. It is now read-only.

Commit eebad03

Browse files
committed
修正U函数一处错误
1 parent 352a4e6 commit eebad03

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ThinkPHP/Common/functions.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -332,16 +332,16 @@ function I($name, $default = '', $filter = null, $datas = null)
332332
break;
333333
case 'param':
334334
switch ($_SERVER['REQUEST_METHOD']) {
335-
case 'POST':
335+
case 'POST':
336336
$input = $_POST;
337337
break;
338-
case 'PUT':
338+
case 'PUT':
339339
if (is_null($_PUT)) {
340340
parse_str(file_get_contents('php://input'), $_PUT);
341341
}
342342
$input = $_PUT;
343343
break;
344-
default:
344+
default:
345345
$input = $_GET;
346346
}
347347
break;
@@ -419,19 +419,19 @@ function I($name, $default = '', $filter = null, $datas = null)
419419
}
420420
if (!empty($type)) {
421421
switch (strtolower($type)) {
422-
case 'a': // 数组
422+
case 'a': // 数组
423423
$data = (array) $data;
424424
break;
425-
case 'd': // 数字
425+
case 'd': // 数字
426426
$data = (int) $data;
427427
break;
428-
case 'f': // 浮点
428+
case 'f': // 浮点
429429
$data = (float) $data;
430430
break;
431-
case 'b': // 布尔
431+
case 'b': // 布尔
432432
$data = (boolean) $data;
433433
break;
434-
case 's': // 字符串
434+
case 's':// 字符串
435435
default:
436436
$data = (string) $data;
437437
}
@@ -1090,7 +1090,7 @@ function U($url = '', $vars = '', $suffix = true, $domain = false)
10901090
}
10911091
}
10921092
if (isset($var[$varModule])) {
1093-
$module = defined('BIND_MODULE') && BIND_MODULE == $module ? '' : $var[$varModule];
1093+
$module = defined('BIND_MODULE') && BIND_MODULE == $var[$varModule] ? '' : $var[$varModule];
10941094
unset($var[$varModule]);
10951095
}
10961096

0 commit comments

Comments
 (0)