/** * 返回附件存储类型 * * @return array */ public function getStorages() { $conf = Wind::getRealPath('WINDID:service.config.storage.storages.php', true); $tmp = array('name' => '', 'alias' => '', 'avatarmanagelink' => '', 'description' => '', 'components' => array()); $storages = @(include $conf); $storages = $this->hook->runWithFilters($storages); foreach ($storages as $key => $value) { $storages[$key] = array_merge($tmp, $value); } return $storages; }