mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修复文件上传引擎选用问题
This commit is contained in:
parent
52ce17a0b7
commit
d88526bd8f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user