mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
修正Validate的fileSize方法
This commit is contained in:
@@ -654,9 +654,6 @@ class Validate
|
||||
if (!($file instanceof \think\File)) {
|
||||
return false;
|
||||
}
|
||||
if (is_string($rule)) {
|
||||
$rule = explode(',', $rule);
|
||||
}
|
||||
if (is_array($file)) {
|
||||
foreach ($file as $item) {
|
||||
if (!$item->checkSize($rule)) {
|
||||
|
||||
Reference in New Issue
Block a user