diff --git a/CloudreveInstaller/Installer.php b/CloudreveInstaller/Installer.php index d17573ba..8ec2ee62 100644 --- a/CloudreveInstaller/Installer.php +++ b/CloudreveInstaller/Installer.php @@ -19,6 +19,8 @@ class Installer{ Ver $version ================================================ "; + $ioContext->writeError("[Error] 命令行安装暂时不可用"); + exit(); $ioContext->write($welcomMsg); $sqlInfo = self::getSqlInformation($event); $ioContext->write(""); diff --git a/application/index/model/Option.php b/application/index/model/Option.php index e2d42c9f..8bd285c4 100644 --- a/application/index/model/Option.php +++ b/application/index/model/Option.php @@ -5,6 +5,7 @@ use think\Model; use think\Db; class Option extends Model{ + static function getValues($groups = ['basic'],$userInfo=null){ $t = Db::name('options')->where('option_type','in',$groups)->column('option_value','option_name'); if(in_array("basic",$groups)){