diff --git a/addons/cos/config.php b/addons/cos/config.php index 3393bc4..870473f 100644 --- a/addons/cos/config.php +++ b/addons/cos/config.php @@ -1,5 +1,7 @@ 'appId', @@ -18,7 +20,7 @@ return [ 'title' => 'SecretId', 'type' => 'string', 'content' => [], - 'value' => getenv('oss.secret'), + 'value' => Env::get('oss.secret'), 'rule' => 'required', 'msg' => '', 'tip' => '请前往腾讯控制台 > 访问管理 > API密钥', @@ -30,7 +32,7 @@ return [ 'title' => 'SecretKey', 'type' => 'string', 'content' => [], - 'value' => getenv('oss_key'), + 'value' => Env::get('oss_key'), 'rule' => 'required', 'msg' => '', 'tip' => '请前往腾讯控制台 > 访问管理 > API密钥',