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() {