Update Upload.php

This commit is contained in:
Anyon 2019-12-21 15:15:07 +08:00
parent 8fa3f12d7c
commit e6796667c2

View File

@ -134,7 +134,7 @@ class Upload extends Controller
{ {
$this->uptype = strtolower(input('uptype', '')); $this->uptype = strtolower(input('uptype', ''));
if (!in_array($this->uptype, ['local', 'qiniu', 'alioss'])) { if (!in_array($this->uptype, ['local', 'qiniu', 'alioss'])) {
$this->uptype = sysconf('storage.type'); $this->uptype = strtolower(sysconf('storage.type'));
} }
return strtolower($this->uptype); return strtolower($this->uptype);
} }