Explorar o código

Update Config.php

Anyon %!s(int64=4) %!d(string=hai) anos
pai
achega
eff50374f1
Modificáronse 1 ficheiros con 3 adicións e 7 borrados
  1. 3 7
      app/admin/controller/Config.php

+ 3 - 7
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();