Update Config.php

This commit is contained in:
Anyon 2020-10-26 14:32:35 +08:00
parent c9341282b3
commit eff50374f1

View File

@ -90,13 +90,9 @@ class Config extends Controller
$this->_applyFormToken(); $this->_applyFormToken();
if ($this->request->isGet()) { if ($this->request->isGet()) {
$this->type = input('type', 'local'); $this->type = input('type', 'local');
if ($this->type === 'alioss') { if ($this->type === 'alioss') $this->points = AliossStorage::region();
$this->points = AliossStorage::region(); elseif ($this->type === 'qiniu') $this->points = QiniuStorage::region();
} elseif ($this->type === 'txcos') { elseif ($this->type === 'txcos') $this->points = TxcosStorage::region();
$this->points = TxcosStorage::region();
} elseif ($this->type === 'qiniu') {
$this->points = QiniuStorage::region();
}
$this->fetch("storage-{$this->type}"); $this->fetch("storage-{$this->type}");
} else { } else {
$post = $this->request->post(); $post = $this->request->post();