From 2c2e8b60527e9b2f3b6b28787865d9399ba98117 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Sun, 17 Mar 2019 11:00:46 +0800 Subject: [PATCH] Modify: Disable cmd install --- CloudreveInstaller/Installer.php | 2 ++ application/index/model/Option.php | 1 + 2 files changed, 3 insertions(+) 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)){