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