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