[更新]修复文件上传引擎选用问题

This commit is contained in:
邹景立 2017-04-17 18:48:23 +08:00
parent 52ce17a0b7
commit d88526bd8f

View File

@ -47,8 +47,7 @@ class Plugs extends BasicAdmin {
$types = $this->request->get('type', 'jpg,png');
$this->assign('mode', $mode);
$this->assign('types', $types);
$uptype = $this->request->get('uptype');
if (!in_array($uptype, ['local', 'qiniu'])) {
if (!in_array(($uptype = $this->request->get('uptype')), ['local', 'qiniu'])) {
$uptype = sysconf('storage_type');
}
$this->assign('uptype', $uptype);