From 3b72cefd38e3954855f69eaab06635830e9970da Mon Sep 17 00:00:00 2001 From: unknown <736250432@qq.com> Date: Sun, 8 Oct 2023 15:22:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=A4=A7=E5=B0=8F=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/alioss/alioss.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/extend/alioss/alioss.php b/extend/alioss/alioss.php index ea54009c7..09e7479ff 100644 --- a/extend/alioss/alioss.php +++ b/extend/alioss/alioss.php @@ -19,10 +19,6 @@ class alioss if(!in_array($fileType,$ext)){ return ['code'=>0,'msg'=>'图片格式错误']; } - //验证图片大小 - if($fileSize > 500*1024){ - return ['code'=>0,'msg'=>'图片大小错误']; - } try { //实例化对象 将配置传入 $ossClient = new OssClient($this->accessKeyId, $this->accessKeySecret, $this->endpoint); @@ -44,11 +40,7 @@ class alioss //验证视频类型 $ext = ['mp4','avi','flv','wmv','swf']; if(!in_array($fileType,$ext)){ - return ['code'=>0,'msg'=>'图片格式错误']; - } - //验证视频大小 - if($fileSize > 1024*1024*100){ - return ['code'=>0,'msg'=>'图片大小错误']; + return ['code'=>0,'msg'=>'视频格式错误']; } try { //实例化对象 将配置传入