From 5e1cb83a4ee1baa5d51e47488cd2a633a07606a6 Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Mon, 12 Jun 2023 09:13:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8A=E4=BC=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=90=8E=E7=BC=80=E5=85=BC=E5=AE=B9=E5=A4=A7=E5=86=99?= =?UTF-8?q?=E5=AD=97=E6=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/crmeb/services/upload/storage/Cos.php | 2 +- crmeb/crmeb/services/upload/storage/Jdoss.php | 2 +- crmeb/crmeb/services/upload/storage/Local.php | 2 +- crmeb/crmeb/services/upload/storage/Obs.php | 2 +- crmeb/crmeb/services/upload/storage/Oss.php | 2 +- crmeb/crmeb/services/upload/storage/Qiniu.php | 2 +- crmeb/crmeb/services/upload/storage/Tyoss.php | 2 +- template/admin/src/pages/notify/smsConfig/index.vue | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crmeb/crmeb/services/upload/storage/Cos.php b/crmeb/crmeb/services/upload/storage/Cos.php index a7ea05bac..3e26b9601 100644 --- a/crmeb/crmeb/services/upload/storage/Cos.php +++ b/crmeb/crmeb/services/upload/storage/Cos.php @@ -139,7 +139,7 @@ class Cos extends BaseUpload return $this->setError('上传的文件不存在'); } if ($this->validate) { - if (!in_array(pathinfo($fileHandle->getOriginalName(), PATHINFO_EXTENSION), $this->validate['fileExt'])) { + if (!in_array(strtolower(pathinfo($fileHandle->getOriginalName(), PATHINFO_EXTENSION)), $this->validate['fileExt'])) { return $this->setError('不合法的文件后缀'); } if (filesize($fileHandle) > $this->validate['filesize']) { diff --git a/crmeb/crmeb/services/upload/storage/Jdoss.php b/crmeb/crmeb/services/upload/storage/Jdoss.php index b8c5d1f72..71b6b2512 100644 --- a/crmeb/crmeb/services/upload/storage/Jdoss.php +++ b/crmeb/crmeb/services/upload/storage/Jdoss.php @@ -129,7 +129,7 @@ class Jdoss extends BaseUpload return $this->setError('上传的文件不存在'); } if ($this->validate) { - if (!in_array(pathinfo($fileHandle->getOriginalName(), PATHINFO_EXTENSION), $this->validate['fileExt'])) { + if (!in_array(strtolower(pathinfo($fileHandle->getOriginalName(), PATHINFO_EXTENSION)), $this->validate['fileExt'])) { return $this->setError('不合法的文件后缀'); } if (filesize($fileHandle) > $this->validate['filesize']) { diff --git a/crmeb/crmeb/services/upload/storage/Local.php b/crmeb/crmeb/services/upload/storage/Local.php index 366eb3d62..1c878147e 100644 --- a/crmeb/crmeb/services/upload/storage/Local.php +++ b/crmeb/crmeb/services/upload/storage/Local.php @@ -116,7 +116,7 @@ class Local extends BaseUpload return $this->setError('上传的文件不存在'); } if ($this->validate) { - if (!in_array(pathinfo($fileHandle->getOriginalName(), PATHINFO_EXTENSION), $this->validate['fileExt'])) { + if (!in_array(strtolower(pathinfo($fileHandle->getOriginalName(), PATHINFO_EXTENSION)), $this->validate['fileExt'])) { return $this->setError('不合法的文件后缀'); } if (filesize($fileHandle) > $this->validate['filesize']) { diff --git a/crmeb/crmeb/services/upload/storage/Obs.php b/crmeb/crmeb/services/upload/storage/Obs.php index c5a9910f5..20b03af90 100644 --- a/crmeb/crmeb/services/upload/storage/Obs.php +++ b/crmeb/crmeb/services/upload/storage/Obs.php @@ -59,7 +59,7 @@ class Obs extends BaseUpload return $this->setError('上传的文件不存在'); } if ($this->validate) { - if (!in_array(pathinfo($fileHandle->getOriginalName(), PATHINFO_EXTENSION), $this->validate['fileExt'])) { + if (!in_array(strtolower(pathinfo($fileHandle->getOriginalName(), PATHINFO_EXTENSION)), $this->validate['fileExt'])) { return $this->setError('不合法的文件后缀'); } if (filesize($fileHandle) > $this->validate['filesize']) { diff --git a/crmeb/crmeb/services/upload/storage/Oss.php b/crmeb/crmeb/services/upload/storage/Oss.php index f45da416b..012c3d201 100644 --- a/crmeb/crmeb/services/upload/storage/Oss.php +++ b/crmeb/crmeb/services/upload/storage/Oss.php @@ -130,7 +130,7 @@ class Oss extends BaseUpload return $this->setError('上传的文件不存在'); } if ($this->validate) { - if (!in_array(pathinfo($fileHandle->getOriginalName(), PATHINFO_EXTENSION), $this->validate['fileExt'])) { + if (!in_array(strtolower(pathinfo($fileHandle->getOriginalName(), PATHINFO_EXTENSION)), $this->validate['fileExt'])) { return $this->setError('不合法的文件后缀'); } if (filesize($fileHandle) > $this->validate['filesize']) { diff --git a/crmeb/crmeb/services/upload/storage/Qiniu.php b/crmeb/crmeb/services/upload/storage/Qiniu.php index b9dae7968..1558c50cc 100644 --- a/crmeb/crmeb/services/upload/storage/Qiniu.php +++ b/crmeb/crmeb/services/upload/storage/Qiniu.php @@ -126,7 +126,7 @@ class Qiniu extends BaseUpload return $this->setError('上传的文件不存在'); } if ($this->validate) { - if (!in_array(pathinfo($fileHandle->getOriginalName(), PATHINFO_EXTENSION), $this->validate['fileExt'])) { + if (!in_array(strtolower(pathinfo($fileHandle->getOriginalName(), PATHINFO_EXTENSION)), $this->validate['fileExt'])) { return $this->setError('不合法的文件后缀'); } if (filesize($fileHandle) > $this->validate['filesize']) { diff --git a/crmeb/crmeb/services/upload/storage/Tyoss.php b/crmeb/crmeb/services/upload/storage/Tyoss.php index 1e90dad7c..2233ba07f 100644 --- a/crmeb/crmeb/services/upload/storage/Tyoss.php +++ b/crmeb/crmeb/services/upload/storage/Tyoss.php @@ -58,7 +58,7 @@ class Tyoss extends BaseUpload return $this->setError('上传的文件不存在'); } if ($this->validate) { - if (!in_array(pathinfo($fileHandle->getOriginalName(), PATHINFO_EXTENSION), $this->validate['fileExt'])) { + if (!in_array(strtolower(pathinfo($fileHandle->getOriginalName(), PATHINFO_EXTENSION)), $this->validate['fileExt'])) { return $this->setError('不合法的文件后缀'); } if (filesize($fileHandle) > $this->validate['filesize']) { diff --git a/template/admin/src/pages/notify/smsConfig/index.vue b/template/admin/src/pages/notify/smsConfig/index.vue index 40f321d8e..4c4c089cb 100644 --- a/template/admin/src/pages/notify/smsConfig/index.vue +++ b/template/admin/src/pages/notify/smsConfig/index.vue @@ -137,7 +137,7 @@ export default { }; }, created() { - this.onIsLogin(); + // this.onIsLogin(); }, methods: { onChangePhone() {