mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进
This commit is contained in:
@@ -551,7 +551,7 @@ class Validate
|
||||
break;
|
||||
case 'boolean':
|
||||
// 是否为布尔值
|
||||
$result = in_array($value, ['true', 'false', 0, 1, true, false]);
|
||||
$result = in_array($value, [0, 1, true, false]);
|
||||
break;
|
||||
case 'array':
|
||||
// 是否为数组
|
||||
|
||||
Reference in New Issue
Block a user