From eff50374f1e63fc02a2686a7e8aae4e7101a5755 Mon Sep 17 00:00:00 2001 From: Anyon <zoujingli@qq.com> Date: Mon, 26 Oct 2020 14:32:35 +0800 Subject: [PATCH] Update Config.php --- app/admin/controller/Config.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/admin/controller/Config.php b/app/admin/controller/Config.php index d8757e731..e0cecfba5 100644 --- a/app/admin/controller/Config.php +++ b/app/admin/controller/Config.php @@ -90,13 +90,9 @@ class Config extends Controller $this->_applyFormToken(); if ($this->request->isGet()) { $this->type = input('type', 'local'); - if ($this->type === 'alioss') { - $this->points = AliossStorage::region(); - } elseif ($this->type === 'txcos') { - $this->points = TxcosStorage::region(); - } elseif ($this->type === 'qiniu') { - $this->points = QiniuStorage::region(); - } + if ($this->type === 'alioss') $this->points = AliossStorage::region(); + elseif ($this->type === 'qiniu') $this->points = QiniuStorage::region(); + elseif ($this->type === 'txcos') $this->points = TxcosStorage::region(); $this->fetch("storage-{$this->type}"); } else { $post = $this->request->post();